cq674350529 / deflat

use angr to deobfuscation
595 stars 114 forks source link

patch 错误 patch error #13

Closed xiran210 closed 3 months ago

xiran210 commented 3 months ago

util.pyins_b_jmp_hex_arm64 函数中 In the ins-b_jmp_hex_arm64 function in utilit.py

此语句错误 This statement is incorrect

patch_ins_hex = struct.pack('<I', ((0x14000000 | 0x03ffffff) - (cur_addr - target_addr) // 4))

应为 Should be

patch_ins_hex = struct.pack('<I', ((0x14000000 | 0x03ffffff) - (cur_addr - target_addr - 4) // 4))
cq674350529 commented 3 months ago

Thanks for your feedback, fixed via https://github.com/cq674350529/deflat/commit/2b57c9f38d2a2f34ac2065cd0cd35637a63f5b18. If any problems, feel free to reopen this issue.