Skip to content

Instantly share code, notes, and snippets.

@cobbr
Created November 6, 2018 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cobbr/cbd6eac3d6c674b19dba783176af67c7 to your computer and use it in GitHub Desktop.
Save cobbr/cbd6eac3d6c674b19dba783176af67c7 to your computer and use it in GitHub Desktop.
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