본문 바로가기

Exploit

afl 설치 및 사용

SMALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$git clone https://github.com/mirrorer/afl
 
$cd afl
 
$make all
 
--------------기본 설치 완료--------------------
 
1. source code base
 
   $./afl-gcc -o target target.c
 
2. binary base
   QEMU 모드 동작 시켜야함
 
   $cd ./qemu_mode
   $CPU_TARGET=[core] ./build_qemu_support.sh
 
   [ex]
   CPU_TARGET=i386 ./build_qemu_support.sh
 
 
 
사용
    ./afl-fuzz -i seed_folder -o output_folder target_binary

     [ex]
    ./afl-fuzz -i ./testcases/others/text/ -o ./out ~/Desktop/./binary
cs


LIST

'Exploit' 카테고리의 다른 글

SSP thread bypass  (0) 2018.04.28
cmd injection  (0) 2018.04.15
SROP  (0) 2018.04.01
House of force  (0) 2018.02.28
shellcode extract  (0) 2017.09.07