File tree Expand file tree Collapse file tree 13 files changed +50
-4
lines changed Expand file tree Collapse file tree 13 files changed +50
-4
lines changed Original file line number Diff line number Diff line change
1
+ .DS_Store
2
+ afl-sync
Original file line number Diff line number Diff line change 10
10
[submodule "sources/wasmerio "]
11
11
path = sources/wasmerio
12
12
url = https://github.com/wasmerio/c-http-server.git
13
+ [submodule "sources/AFL "]
14
+ path = sources/AFL
15
+ url = https://github.com/google/AFL.git
Original file line number Diff line number Diff line change @@ -8,13 +8,19 @@ all: build
8
8
# Build sources
9
9
build : sources/aaron-kalair/server
10
10
11
- sources/aaron-kalair/server :
12
- $(MAKE ) ./sources/aaron-kalair/makefile server
13
-
14
11
init :
15
- git submodule init sources/aaron-kalair sources/soywood sources/wasmerio sources/wsic
12
+ git submodule init sources/aaron-kalair sources/soywood sources/wasmerio sources/wsic sources/AFL
16
13
$(MAKE ) apply-patches
17
14
15
+ sources/AFL/afl-g++ :
16
+ AFL_CC=gcc AFL_CXX=g++ $(MAKE ) -C ./sources/AFL afl-g++
17
+
18
+ sources/AFL/afl-gcc :
19
+ AFL_CC=gcc AFL_CXX=g++ $(MAKE ) -C ./sources/AFL afl-gcc
20
+
21
+ sources/aaron-kalair/server : sources/AFL/afl-gcc
22
+ AFL_CC=gcc AFL_CXX=g++ AFL_HARDEN=1 CC=$(PWD ) /sources/AFL/afl-gcc $(MAKE ) -C ./sources/aaron-kalair server
23
+
18
24
apply-patches :
19
25
cd sources/aaron-kalair && git apply --stat ../../patches/aaron-kalair.patch || true
20
26
cd sources/soywood && git apply --stat ../../patches/soywood.patch || true
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ make init
11
11
12
12
Other commands:
13
13
``` bash
14
+ # Build AFL
15
+ make afl
16
+
14
17
# Create patches from altered sources
15
18
make create-patches
16
19
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ binary=" $1 "
4
+ shift
5
+
6
+ rm -rf afl-sync
7
+ mkdir -p afl-sync
8
+
9
+ function cleanup {
10
+ echo " Cleaning up fuzzers"
11
+ kill -9 " $fuzzer01 " || true
12
+ kill -9 " $fuzzer02 " || true
13
+ kill -9 " $fuzzer03 " || true
14
+ kill -9 " $fuzzer04 " || true
15
+ }
16
+ trap cleanup EXIT
17
+
18
+ ./sources/AFL/afl-fuzz -i inputs/afl -o afl-sync -M fuzzer01 " $binary " " $@ " > /dev/null &
19
+ fuzzer01=" $! "
20
+ sleep 5
21
+
22
+ ./sources/AFL/afl-fuzz -i inputs/afl -o afl-sync -S fuzzer02 " $binary " " $@ " > /dev/null &
23
+ fuzzer02=" $! "
24
+
25
+ ./sources/AFL/afl-fuzz -i inputs/afl -o afl-sync -S fuzzer03 " $binary " " $@ " > /dev/null &
26
+ fuzzer03=" $! "
27
+
28
+ ./sources/AFL/afl-fuzz -i inputs/afl -o afl-sync -S fuzzer04 " $binary " " $@ " > /dev/null &
29
+ fuzzer04=" $! "
30
+
31
+ watch ./sources/AFL/afl-whatsup afl-sync
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments