Skip to content

Instantly share code, notes, and snippets.

@wyattearp
Last active September 2, 2022 13:09
Show Gist options
  • Save wyattearp/7ff9eee316be1bd26d53c3bab5c72cc7 to your computer and use it in GitHub Desktop.
Save wyattearp/7ff9eee316be1bd26d53c3bab5c72cc7 to your computer and use it in GitHub Desktop.
quick busybox qemu runner for ARM
#AFL_DEBUG=1 \
AFL_SKIP_CPUFREQ=1 \
AFL_QEMU_PERSISTENT_ADDR=0xXXXX \
AFL_QEMU_PERSISTENT_RET=0xXXXX \
LD_LIBRARY_PATH=./lib \
QEMU_LD_PREFIX=./ \
USE_RAW_FORMAT=1 \
AFL_PRELOAD="/home/wyatt/git_repos/desockmulti/desockmulti.so" \
PREENY_DEBUG=1 \
PREENY_INFO=1 \
PREENY_ERROR=1 \
~/git_repos/AFLplusplus/afl-fuzz -Q -i in -o out -t 2000 -- \
# just run it and see if it sticks
LD_LIBRARY_PATH=./lib QEMU_LD_PREFIX=./ qemu-arm -L . $@
#!/bin/bash
# try and drop to a busybox shell
LD_LIBRARY_PATH=./lib QEMU_LD_PREFIX=./ qemu-arm -L . ./bin/busybox sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment