diff --git a/dfuexec.py b/dfuexec.py index 9df87afd..fd94c0e8 100644 --- a/dfuexec.py +++ b/dfuexec.py @@ -309,7 +309,7 @@ def add_24Kpwn_exploit_to_nor(self, nor): assert len(nor) == len(new_nor) return new_nor - def add_alloc8_exploit_to_nor(self, nor): + def add_alloc8_exploit_to_nor(self, nor, securerom): SHELLCODE_ADDRESS = 0x84026214 + 1 MAX_SHELLCODE_LENGTH = 460 REQUIRED_IMG3_COUNT = 714 @@ -377,7 +377,6 @@ def add_alloc8_exploit_to_nor(self, nor): new_nor_firmware += empty_img3_data(final_size) # Only override data abort handler, keep the rest - securerom = self.securerom_dump() securerom_block = securerom[8:8+NOR_READ_SIZE] new_nor_firmware += securerom_block[:40] + struct.pack('