Skip to content

Commit

Permalink
loop in pl-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosmaster committed Feb 9, 2021
1 parent 732c47a commit e8f897e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,19 @@ def main():

config, serial_link_authorization, download_agent_authorization, hw_code = get_device_info(device, arguments)

if device.preloader:
log("")
while device.preloader:

print("")
log("Found device in preloader mode, trying to crash...")
log("")
print("")
if config.crash_method == 0:
try:
payload = b'\x00\x01\x9F\xE5\x10\xFF\x2F\xE1' + b'\x00' * 0x110
device.send_da(0, len(payload), 0, payload)
device.jump_da(0)
except RuntimeError as e:
print(e)
log(e)
print("")
elif config.crash_method == 1:
payload = b'\x00' * 0x100
device.send_da(0, len(payload), 0x100, payload)
Expand Down

0 comments on commit e8f897e

Please sign in to comment.