728x90
๋ฐ˜์‘ํ˜•

#include <stdio.h>

#include <stdlib.h>


int main(int argc,char *argv[]) {

long shell;

shell = ์‹œ์Šคํ…œ ์ฃผ์†Œ;

while(memcmp((void*)shell,("/bin/sh"),8)) shell++;

printf("%p\n",shell);

}



728x90
๋ฐ˜์‘ํ˜•

'Security Study > System' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

C์–ธ์–ด์˜ ๋ฉ”๋ชจ๋ฆฌ ๊ตฌ์กฐ  (0) 2015.09.21
race condition(๊ฒฝ์Ÿ ์กฐ๊ฑด)attack  (0) 2015.09.17
system 2  (0) 2015.09.13
system 1์ผ์ฐจ  (0) 2015.09.12
system shellcode  (0) 2015.09.10