Last active
September 2, 2022 13:09
-
-
Save wyattearp/7ff9eee316be1bd26d53c3bab5c72cc7 to your computer and use it in GitHub Desktop.
quick busybox qemu runner for ARM
This file contains hidden or 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
#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 -- \ |
This file contains hidden or 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
# just run it and see if it sticks | |
LD_LIBRARY_PATH=./lib QEMU_LD_PREFIX=./ qemu-arm -L . $@ |
This file contains hidden or 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
#!/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