-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae4bbe6
commit fa02b39
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
test -x "$1" || { echo Error: $1 is not an executable; exit 1; } | ||
ADDR=0x`nm "$1"|grep -i 'T LLVMFuzzerTestOneInput'|awk '{print$1}'` | ||
test -n "$ADDR" || { echo Error: $1 does not contain LLVMFuzzerTestOneInput; exit 1; } | ||
export AFL_FRIDA_PERSISTENT_ADDR=$ADDR | ||
export AFL_ENTRYPOINT=$ADDR | ||
export AFL_FRIDA_PERSISTENT_HOOK=/out/frida_hook.so | ||
export AFL_PATH=/out | ||
export AFL_CMPLOG_ONLY_NEW=1 | ||
export AFL_DISABLE_TRIM=1 | ||
export AFL_NO_WARN_INSTABILITY=1 | ||
export AFL_FAST_CAL=1 | ||
export AFL_IGNORE_UNKNOWN_ENVS=1 | ||
export AFL_MAP_SIZE=2621440 | ||
cd seeds && { | ||
for i in ../*.zip; do unzip -n $i; done | ||
echo > empty_testcase.txt | ||
cd .. | ||
} | ||
./afl-fuzz -O -i seeds -o corpus -c 0 -l 2 -- $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
test -x "$1" || { echo Error: $1 is not an executable; exit 1; } | ||
ADDR=0x`nm "$1"|grep -i 'T afl_qemu_driver_stdin'|awk '{print$1}'` | ||
test -n "$ADDR" || { echo Error: $1 does not contain afl_qemu_driver_stdin; exit 1; } | ||
export AFL_ENTRYPOINT=$ADDR | ||
export AFL_QEMU_PERSISTENT_ADDR=$ADDR | ||
export AFL_QEMU_DRIVER_NO_HOOK=1 | ||
export AFL_QEMU_PERSISTENT_CNT=1000000 | ||
export AFL_FRIDA_PERSISTENT_HOOK=/out/frida_hook.so | ||
export AFL_PATH=/out | ||
export AFL_CMPLOG_ONLY_NEW=1 | ||
export AFL_DISABLE_TRIM=1 | ||
export AFL_NO_WARN_INSTABILITY=1 | ||
export AFL_FAST_CAL=1 | ||
export AFL_IGNORE_UNKNOWN_ENVS=1 | ||
export AFL_MAP_SIZE=2621440 | ||
cd seeds && { | ||
for i in ../*.zip; do unzip -n $i; done | ||
echo > empty_testcase.txt | ||
cd .. | ||
} | ||
./afl-fuzz -O -i seeds -o corpus -c 0 -l 2 -- $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters