/bin/sh 주소를 찾을 때

IT/Security/System 2010. 3. 17. 14:23

int main(int argc, char **argv)
{
        long shell;
        shell = 0x4006b498;  // <=== system()함수의 주소
        while(memcmp((void*)shell,"/bin/sh",8)) shell++;
        printf("\"/bin/sh\" is at 0x%x\n",shell);
}

'IT/Security > System' 카테고리의 다른 글

리눅스 메모리 구조에 관한 간략한 설명  (0) 2010.05.11
Ubuntu 10.04 Beta2 설치기  (0) 2010.04.22
gcc 2.96에서 buf와 buf2의 거리표  (0) 2010.03.14
bfd.h 가 없을 경우  (0) 2010.03.14
dumpcode.h  (0) 2010.03.14

설정

트랙백

댓글