bkerler / oppo_decrypt

Oppo .ofp Firmware decrypter and oneplus .ops de-/encrypter
528 stars 187 forks source link

Bug “KeyError: 'payload'“ in backdoor.py #61

Open One-sixth opened 2 years ago

One-sixth commented 2 years ago

I tried using backdoor.py to turn on readback mode. Then found this problem. My frida version is 15.1.17 . s1

And then I check the var message. Then I got Line 7 in backdoor.py

def on_message(message, data):
    print(message) # check var
    if (message["payload"]=="Output"):

s2

I replace line 20 in backdoor.py

lang=Module.findExportByName("kernel32","GetSystemDefaultLCID");

to

var lang=Module.findExportByName("kernel32","GetSystemDefaultLCID");

then the bug is gone. s3 s4