0%

AFL-fuzz and libFuzzer

AFL-fuzz

官網

1
2
3
4
5
$ wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz
$ tar zxvf afl-latest.tgz
$ cd afl-2.05b
$ make
$ sudo make install
1
2
3
4
5
$ wget https://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz
$ tar zxvf binutils-2.25.tar.gz
$ cd binutils-2.25
$ CC=afl-gcc ./configure
$ make

Test

1
2
3
$ mkdir afl_in afl_out
$ cp /bin/ps afl_in
$ afl-fuzz -i afl_in -o afl_out ./binutils/readelf -a @@