system함수 릭한 후 /bin/sh 주소 구하기 (NON ASLR)
2018. 4. 10. 02:01ㆍ0x04 pwnable
728x90
#include <stdio.h>
int main()
{
int shell = 0x주소; // system주소
while(memcmp((void*)shell, "/bin/sh",8))
shell++;
printf("%x\n",shell);
return 0;
}
'0x04 pwnable' 카테고리의 다른 글
Protostar Simple Writeup (0) | 2018.04.10 |
---|---|
Protostar (2) | 2018.04.10 |
arm 아키텍쳐 cross compile in UBUNTU (0) | 2018.03.02 |
디렉터리보는법 (0) | 2018.03.01 |
python jail (0) | 2018.03.01 |