Skip to content

Instantly share code, notes, and snippets.

@cobbr
Created November 6, 2018 15:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cobbr/48171d8dfd7e0d58262081dccd042b71 to your computer and use it in GitHub Desktop.
Save cobbr/48171d8dfd7e0d58262081dccd042b71 to your computer and use it in GitHub Desktop.
cobbr@mac:~/SharpGen > cp -r ~/GhostPack/SharpWMI/SharpWMI ./Source
cobbr@mac:~/SharpGen > cat example.txt
SharpWMI.Program.LocalWMIQuery("select * from win32_service");
Console.WriteLine(Host.GetProcessList());
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