1 2 3 4 5 6 7 8 9 | #include <stdio.h> #include <stdlib.h> int main(int argvc, char* argv[]) { printf("%p\n", getenv(argv[1])); return 0; } | cs |
인자로 넘긴 환경변수의 주소를 출력해주는 소스코드이다.
'Linux > ETC' 카테고리의 다른 글
[Linux] system함수 안의 /bin/sh문자열 주소 구하기 (0) | 2019.05.06 |
---|---|
[Linux] 25byte Shellcode (0) | 2019.03.24 |
[Linux] EGGSHELL.c (0) | 2019.03.22 |