Update amonet.py

This commit is contained in:
Bjoern Kerler 2023-10-02 09:48:29 +02:00 committed by GitHub
parent f1f404660b
commit 0f4018aa83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,7 @@ class Amonet(Exploitation, metaclass=LogBase):
if self.chipconfig.blacklist:
self.hwcrypto.disable_range_blacklist("gcpu", self.mtk)
if data is None:
old = 0
data=bytearray()
for addr in range(address, address+length, 16):
prog = int(addr / length * 100)
@ -138,4 +139,4 @@ class Amonet(Exploitation, metaclass=LogBase):
old = round(prog, 1)
wf.write(self.hwcrypto.gcpu.aes_read_cbc(addr))
print_progress(100, 100, prefix='Progress:', suffix='Complete', bar_length=50)
return True
return True