-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathrmsigchecks_t7000.py
More file actions
executable file
·41 lines (27 loc) · 929 Bytes
/
rmsigchecks_t7000.py
File metadata and controls
executable file
·41 lines (27 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python
import dfu
import usbexec
DFU_ABORT = 4
HOST2DEVICE = 0x21
SIG_CHECKS_1 = 0x1000078B4
SIG_CHECKS_2 = 0x1000078C0
SIG_CHECKS_3 = 0x1000078E4
SIG_CHECKS_4 = 0x100007BAC
SIG_CHECKS_5 = 0x1800888C4
pwnd_device = usbexec.PwnedUSBDevice()
device = dfu.acquire_device()
# Remove sigchecks
# 0x1111 nonce
pwnd_device.write_memory(0x20E029038, "\x11\x11\x11\x11")
pwnd_device.write_memory(0x20E02903C, "\x11\x11\x11\x11")
pwnd_device.write_memory(SIG_CHECKS_1, "\x1F\x20\x03\xD5")
pwnd_device.write_memory(SIG_CHECKS_2, "\x1F\x20\x03\xD5")
pwnd_device.write_memory(SIG_CHECKS_3, "\x1F\x20\x03\xD5")
pwnd_device.write_memory(SIG_CHECKS_4, "\x1F\x20\x03\xD5")
pwnd_device.write_memory(SIG_CHECKS_5, "\x00\x00\x00\x00")
# Reset USB connection
device.ctrl_transfer(HOST2DEVICE, DFU_ABORT, 0, 0, 0, 0)
dfu.usb_reset(device)
dfu.release_device(device)
# All done
print 'Removed SecureROM Signature Checks.'