fix shellcode x86_64

This commit is contained in:
cocay 2024-03-28 01:58:54 +07:00
parent f795e9b99d
commit 57b0ae26a7

View File

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