Running TriforceAFL in OpenWrt for ARM
In order to run OpenWrt on our system, we need to modify the runFuzz
script located in the /TriforceLinuxSyscallFuzzer
folder. We can use the Vim editor, as we did before:
cd /TriforceLinuxSyscallFuzzer vim runFuzz
We will change the end of the file, which originally looks like the following snippet:
$AFL/afl-fuzz $FARGS -t 500+ -i $INP -o outputs -QQ -- \ $AFL/afl-qemu-system-trace \ -L $AFL/qemu_mode/qemu/pc-bios \ -kernel $KERN/bzImage -initrd ./fuzzRoot.cpio.gz \ -m 64M -nographic -append "console=ttyS0" \ -aflPanicAddr "$PANIC" \ -aflDmesgAddr "$LOGSTORE" \ -aflFile @@
After making the change, the modified code looks like the following:
$AFL/afl-fuzz $FARGS -t 500+ -i $INP -o outputs -QQ...