메뉴 건너뛰기

app

[아이폰 ] anti debugging 메소드

suritam92013.08.27 22:07조회 수 3322댓글 0

    • 글자 크기
#import <Foundation/Foundation.h>

#include <sys/types.h>
#include <sys/ptrace.h>

int main (int argc, const char * argv[])
{
    ptrace(PT_DENY_ATTACH, 0, 0, 0);
    […]
    return 0;
}


$ gdb ./test
[...]
(gdb) r
Starting program: test
Reading symbols for shared libraries .++++....................... done

Program exited with code 055.
(gdb)
프로세스 확인 후, gdb -p [pid] 로 하면
Reading symbols for shared libraries + done
0x35e75c00 in mach_msg_trap ()
(gdb)
로 나온다.
그런데, 일시적으로 동적 디버깅이 되는 때가 있었다. 지금은 재현이 안 되지만 다시 시도해 본다.
suritam9 (비회원)
    • 글자 크기
[아이폰] 아이폰 앱 스토어 리뷰 가이드 라인 (by suritam9) [iphone] 메모리 덤프 (by suritam9)

댓글 달기

lispro06
2015.05.15 조회 1841
lispro06
2015.05.15 조회 1791
lispro06
2015.05.15 조회 2679
lispro06
2014.08.16 조회 1934
lispro06
2014.02.08 조회 4290
lispro06
2013.12.11 조회 1925
lispro06
2013.12.10 조회 3188
suritam9
2013.12.06 조회 2469
suritam9
2013.12.02 조회 3717
suritam9
2013.11.30 조회 2331
suritam9
2013.11.26 조회 1856
suritam9
2013.08.23 조회 7532
suritam9
2013.08.23 조회 2061
suritam9
2013.06.28 조회 2539
첨부 (0)
위로