Security Study/System
system /bin/sh ์ฃผ์ ์ฐพ๊ธฐ
๐๐พ๐ฌ๐ฎ๐ฝ๐ฎ_๐ข๐ฝ๐ฎ๐ต๐ต๐ช
2015. 9. 15. 02:13
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
๋ฐ์ํ