aflghidraemu 已不再维护,并由 Ghidralligator 取代。请尝试使用它! aflghidraemu 允许对异常体系结构进行模糊测试,例如 ARM、MIPS、PowerPC、…
aflghidraemu 已不再维护,并由 Ghidralligator 取代。请尝试使用它! aflghidraemu 允许对异常体系结构进行模糊测试,例如 ARM、MIPS、PowerPC、…
afl_ghidra_emu is no longer maintained and replaced by Ghidralligator. Try it!
afl_ghidra_emu allows to fuzz exotic architecture using AFL++ and Ghidra emulation with code coverage functionality.
For more information, read this article.
AFL++ runs a trampoline program (afl_bridge_external) which is in charge of forwarding samples to Ghidra emulation via a TCP socket (Ex: 127.0.0.1:6674/tcp).
A python script in Ghidra (fuzz_xtensa_check_serial.py) is responsible for emulating code execution. It listens on a TCP socket (127.0.0.1:6674/tcp) and waits for input data coming from trampoline script. As soon as the script receives input data, the emulation will be started. During the execution, the executed path addresses, and the execution status are sent to afl_bridge_external using established TCP socket.
afl_bridge_external reports the execution status and execution path to AFL++ using pipes and shared memory.
Install AFL++
Clone afl_ghidra_emu directory
git clone https://github.com/airbus-cyber/afl_ghidra_emu.gitCompile afl_bridge_external
cd afl_ghidra_emu/afl_bridge_external
makeCopy afl_ghidra_emu files to your ghidra script directory
cd ../..
cp –r afl_ghidra_emu/* $USER_HOME/ghidra_scripts/./examples/xtensa/bin/keygenme_xtensa.elf is a keygenMe compiled for Xtensa (ex: esp32) architecture. Xtensa is not officially supported in Ghidra yet. So, you need first to install it by following these instruction
Make AFL workspace directories
mkdir input outputAdd first sample
echo -n "BBBBBBBB" > input/sample1.binStart AFL++ with trampoline program.
afl-fuzz -D -i input -o output afl_bridge_external 127.0.0.1 6674 20Stop AFL++ using CTRL+C. If Ghidra emulation still running, we can send "STOP" command:
echo -e "\xff" | nc 127.0.0.1 6674Do no use Ghidra Cancel button, because it does not properly close the socket.
./examples/ppc/bin/keygenme_ppc.elf is also a keygenMe compiled for PowerPC architecture.
Follow the same steps above with PowerPC:BE:32:default architecture in Ghidra and run the script fuzz_ppc_check_serial.py.
暂无开放 Issues,或尚未同步最近议题。