Subversion Repositories freemyipod

Rev

Rev 253 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 253 Rev 254
Line 42... Line 42...
42
 
42
 
43
file = open(sys.path[0] + "/ftlstub/build/ftlstub.ucl", "rb")
43
file = open(sys.path[0] + "/ftlstub/build/ftlstub.ucl", "rb")
44
ftlstub = file.read()
44
ftlstub = file.read()
45
file.close()
45
file.close()
46
 
46
 
47
exploit = "<a href=\"" + sys.argv[2].ljust(276, "A") + "%34%05%64%08\">a</a>"
47
exploit = "<a href=\"" + sys.argv[2].ljust(276) + "%34%05%64%08\">a</a>"
48
 
48
 
49
file = open(sys.argv[3], "wb")
49
file = open(sys.argv[3], "wb")
50
file.write(exploit + ftlstub.ljust(4096 - len(exploit) - len(uclstub), "\0") + uclstub + payload)
50
file.write(exploit + ftlstub.ljust(4096 - len(exploit) - len(uclstub), "\0") + uclstub + payload)
51
file.close()
51
file.close()