freemyipod r254 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r253‎ | r254 | r255 >
Date:20:48, 4 November 2010
Author:theseven
Status:new
Tags:
Comment:
noteboot: Pad the file name to be loaded with spaces instead of "A"s. The iPod accepts it, and it will allow for some version information or similar things in the note header.
Modified paths:
  • /noteboot/gennote.py (modified) (history)

Diff [purge]

Index: noteboot/gennote.py
@@ -44,7 +44,7 @@
4545 ftlstub = file.read()
4646 file.close()
4747
48 -exploit = "<a href=\"" + sys.argv[2].ljust(276, "A") + "%34%05%64%08\">a</a>"
 48+exploit = "<a href=\"" + sys.argv[2].ljust(276) + "%34%05%64%08\">a</a>"
4949
5050 file = open(sys.argv[3], "wb")
5151 file.write(exploit + ftlstub.ljust(4096 - len(exploit) - len(uclstub), "\0") + uclstub + payload)