Added basic functionality to query package information.

This commit is contained in:
antiduh
2014-06-25 20:14:12 +00:00
parent 5f3fd64169
commit 6dfaa54b63
5 changed files with 139 additions and 4 deletions

View File

@@ -16,7 +16,9 @@ namespace NSspi
{
public static void Main( string[] args )
{
CredTest();
SecPkgInfo pkgInfo = PackageSupport.GetPackageCapabilities( "Negotiate" );
//CredTest();
}
private static void IdentTest()
@@ -63,7 +65,9 @@ namespace NSspi
ContextAttrib.InitIdentify |
ContextAttrib.Confidentiality |
ContextAttrib.ReplayDetect |
ContextAttrib.SequenceDetect
ContextAttrib.SequenceDetect |
ContextAttrib.Connection |
ContextAttrib.Delegate
);
serverCred = new ServerCredential( SecurityPackage.Negotiate );
@@ -74,7 +78,9 @@ namespace NSspi
ContextAttrib.AcceptIdentify |
ContextAttrib.Confidentiality |
ContextAttrib.ReplayDetect |
ContextAttrib.SequenceDetect
ContextAttrib.SequenceDetect |
ContextAttrib.Connection |
ContextAttrib.Delegate
);
clientToken = null;
@@ -135,6 +141,12 @@ namespace NSspi
throw new Exception();
}
using( server.ImpersonateClient() )
{
}
Console.Out.Flush();
}
finally