简体   繁体   English

KerberosRequestorSecurityToken的.Net核心等效项是什么?

[英]What is the .Net core equivalent of KerberosRequestorSecurityToken?

I am specifically trying to replicate a few lines of code, but cannot seem to find the equivalent in .net core. 我专门尝试复制几行代码,但似乎无法在.net核心中找到等效的代码。 Any help in replacing would be appreciated, or at least some direction in where to look. 替换方面的任何帮助,或至少在寻找方向方面的指导,将不胜感激。 I did try looking into Kerberos.NET but it didn't seem to have this kind of functionality. 我确实尝试研究Kerberos.NET,但它似乎没有这种功能。

System.IdentityModel.Tokens.KerberosRequestorSecurityToken Ticket = null;
try
{
     Ticket = new System.IdentityModel.Tokens.KerberosRequestorSecurityToken(UserSPN);
}

So, I came across a blog post published the day I posted this question and I've been messing around with it. 因此,我偶然发现了发布该问题的当天发布的博客文章,并且一直在搞弄它。 It does effectively replace the System.IdentityModel.Tokens.KerberosRequestorSecurityToken class. 它确实替代了System.IdentityModel.Tokens.KerberosRequestorSecurityToken类。 The blog is from Harmj0y, who effectively wrote PowerView and helped write Sharphound. 该博客来自Harmj0y,他有效地撰写了PowerView并帮助撰写了Sharphound。 My next step is trying to replace the interop features, since the .dll files referenced won't be available on *nix type systems. 我的下一步是尝试替换互操作功能,因为所引用的.dll文件在* nix类型的系统上不可用。 That may end up being another question. 这可能最终成为另一个问题。 The blogs link is below. 博客链接如下。

http://www.harmj0y.net/blog/redteaming/kerberoasting-revisited/ http://www.harmj0y.net/blog/redteaming/kerberoasting-revisited/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM