We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9ec2ed commit 514cbb7Copy full SHA for 514cbb7
1 file changed
iBoot.py
@@ -135,13 +135,11 @@ def init(self):
135
136
self.log(f"Loading {'SecureROM' if self.isSecureROM else 'iBoot'}")
137
138
- addr = 0
139
self.base = None
140
- for inst in self.raw.disassembly_text(0x0, Architecture["aarch64"]):
141
- # inst is a tuple, which looks like this : ('ldr x1, 0x300', 4)
142
- # it contains the instruction and its size
143
- if "ldr" in inst[0]:
144
- self.reader.seek(int(inst[0].split(" ")[-1], 16))
+ for addr in range(0, 0x200, 4):
+ inst = self.raw.get_disassembly(addr, Architecture['aarch64'])
+ if "ldr" in inst:
+ self.reader.seek(int(inst.split(" ")[-1], 16))
145
self.base = self.reader.read64()
146
break
147
0 commit comments