Created
November 6, 2018 15:51
-
-
Save cobbr/cbd6eac3d6c674b19dba783176af67c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using SharpSploit.Credentials; | |
public class Program { | |
static void Main() { | |
using (Tokens t = new Tokens()) | |
{ | |
string whoami = t.RunAs("Username", ".", "Password123!", ()=> | |
{ | |
return t.WhoAmI(); | |
}); | |
} | |
Console.WriteLine(whoami); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment