Update objc.go: fix shellcode offset

This commit is contained in:
cocay 2024-01-10 16:17:40 +07:00
parent 9a8ab15d88
commit 37c2f93383

View File

@ -325,7 +325,7 @@ func (mc *MachoContext) ReworkForObjc() {
}
}
encode_movz((data_end - text_start) + (shellcode_size - len(shellcode_start)))
encode_movz((data_end - text_start) + (shellcode_size - 7))
shellcode_offset = text_start - shellcode_size
shellcode_bytes := append(shellcode_start, offset...)