-
[iOS] Exit Function Hook#1 - Security/iOS 2020. 11. 25. 14:32
iOS 진단하다 탈옥 탐지 문구도 없이 앱 종료가 발생한다..
그래서 생각해낸 방법은 exit 함수 훅걸어서 BackTrace 로 타고타고 올라감
var exit = Module.findExportByName('libSystem.B.dylib', 'exit'); Interceptor.attach(exit, { onEnter: function (args) { console.log("[*] exit Call"); console.log('\tBacktrace:\n\t' + Thread.backtrace(this.context, Backtracer.ACCURATE).map(DebugSymbol.fromAddress) .join('\n\t')); }, onLeave: function (retval) { } });
'#1 - Security > iOS' 카테고리의 다른 글
iOS Syscall Instruction and Hooking (0) 2022.12.12 iOS 설치 파일 추출(IPA) (0) 2020.05.26 iOS Anti-Reversing Defenses (0) 2020.05.22 .deb Installation, SpringBoard Restart (0) 2020.05.20 [iOS] User Function Frida Hooking (0) 2019.11.21