ii4gsp
OverTheWire - Narnia1 본문
#include <stdio.h>
int main(){
int (*ret)();
if(getenv("EGG")==NULL){
printf("Give me something to execute at the env-variable EGG\n");
exit(1);
}
printf("Trying to execute EGG!\n");
ret = getenv("EGG");
ret();
return 0;
}
EGG라는 이름의 환경변수에 쉘 코드를 넣어주면 된다.
Narnia2 = nairiepecu
'시스템 해킹 > OverTheWire - Narnia' 카테고리의 다른 글
OverTheWire - Narnia2 (0) | 2020.02.22 |
---|---|
OverTheWire - Narnia0 (0) | 2020.02.22 |
Comments