전체 글
-
iOS Syscall Instruction and Hooking#1 - Security/iOS 2022. 12. 12. 15:07
예전에 올린 글 중 iOS Exit 후킹 코드를 사용하다가 syscall 사용하여 exit 시키는 경우도 있어 찾아보게 되었다. 일단 iOS Syscall Table이다. https://www.theiphonewiki.com/wiki/Kernel_Syscalls 그 다음 iOS Syscall Instruction을 보면 이렇다. The immediate passed to svc is ignored, but the standard library uses svc 0x80. x16 holds the syscall number x0 through x8 hold up to 9 arguments* There are no arguments on the stack x0 and x1 hold up to 2 return ..