PoC 1.0 #1

Merged
nganhkhoa merged 15 commits from merge into main 2024-01-10 15:37:59 +07:00
Showing only changes of commit c805fc56b3 - Show all commits

View File

@ -472,7 +472,7 @@ func (mc *MachoContext) ReworkForObjc() {
main_offset := int(mc.entryoff)
var shellcode_offset int
if mc.header.cputype == 12{
if (mc.header.cputype & 0xff) == 12{
shellcode = []uint32{
0x10000008,
0, // x9 = (offset end of __DATA) - (offset shellcode)