Update objc.go: fix shellcode offset
This commit is contained in:
parent
9a8ab15d88
commit
37c2f93383
@ -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...)
|
||||
|
Loading…
Reference in New Issue
Block a user