diff --git a/dfuexec.py b/dfuexec.py index af15d0b5..862cd714 100644 --- a/dfuexec.py +++ b/dfuexec.py @@ -269,7 +269,7 @@ def boot_ibss(self): def flash_nor(self, nor): self.boot_ibss() print 'Sending iBSS payload to flash NOR.' - MAX_SHELLCODE_LENGTH = 128 + MAX_SHELLCODE_LENGTH = 132 payload = open('bin/ibss-flash-nor-shellcode.bin', 'rb').read() assert len(payload) <= MAX_SHELLCODE_LENGTH payload += '\x00' * (MAX_SHELLCODE_LENGTH - len(payload)) + nor @@ -311,4 +311,4 @@ def decrypt_keybag(self, keybag): f.write(keybag + decrypted_keybag) f.close() - return decrypted_keybag \ No newline at end of file + return decrypted_keybag