Skip to content

Commit

Permalink
Add afl-fuzz-parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
d33tah committed Oct 6, 2015
1 parent b8c2253 commit d7a0785
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@ RUN chmod +x /etc/profile.d/afl-sh-profile
ADD ./setup-afl_cc /usr/bin/setup-afl_cc
RUN setup-afl_cc

ADD ./afl-fuzz-parallel /usr/bin/

RUN mkdir ~/pkg ~/pkgs ~/logs
CMD [ "aflize" ]
17 changes: 17 additions & 0 deletions afl-fuzz-parallel
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# A trivial script that just runs multiple instances of afl-fuzz in the
# background (as many as # the number of CPUs). Then it starts a master process
# that actually displays the stats. Once you kill the master process (for
# example) using CTR+C, the remaining processes are killed as well.
#
# USAGE: just like afl-fuzz
#
# AUTHOR: Jacek "d33tah" Wielemborek, licensed under WTFPL.


for i in `seq 2 $(nproc)`; do
afl-fuzz -S $RANDOM $@ >/dev/null 2>&1 &
done
afl-fuzz -M master $@
pkill afl-fuzz

0 comments on commit d7a0785

Please sign in to comment.