From 57b0ae26a7a50f026b8d416fb236d5ee30fab3c4 Mon Sep 17 00:00:00 2001 From: cocay Date: Thu, 28 Mar 2024 01:58:54 +0700 Subject: [PATCH] fix shellcode x86_64 --- macho-go/pkg/ios/macho/objc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macho-go/pkg/ios/macho/objc.go b/macho-go/pkg/ios/macho/objc.go index a699e79..6431a4c 100644 --- a/macho-go/pkg/ios/macho/objc.go +++ b/macho-go/pkg/ios/macho/objc.go @@ -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...)