diff options
author | van Hauser <vh@thc.org> | 2024-07-01 08:55:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-01 08:55:00 +0200 |
commit | e27e3622d465778aba4e75dc623bf1348c46785d (patch) | |
tree | 4a1108a4ffe96db28a31b5fcda1b49c65c806551 /qemu_mode/build_qemu_support.sh | |
parent | a7f928ac31bd75d91f93631790d95a86d13e134f (diff) | |
parent | b169629dbd1cd0b78b541c7fa8eccf6a6a7394b1 (diff) | |
download | afl++-e27e3622d465778aba4e75dc623bf1348c46785d.tar.gz |
Merge pull request #2140 from CowBoy4mH3LL/dev
Adding of QEMU hooking bridge
Diffstat (limited to 'qemu_mode/build_qemu_support.sh')
-rwxr-xr-x | qemu_mode/build_qemu_support.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh index 19336114..4dd4fad2 100755 --- a/qemu_mode/build_qemu_support.sh +++ b/qemu_mode/build_qemu_support.sh @@ -386,6 +386,19 @@ else make -C libqasan CC="$CROSS $CROSS_FLAGS" && echo "[+] libqasan ready" fi +#### Hooking support +if [ "$ENABLE_HOOKING" = "1" ];then + echo "[+] ENABLING HOOKING" + set -e + cd ./hooking_bridge || exit 255 + mkdir -p ./build + echo "[+] Hook compiler = $CROSS" + make CC="$CROSS $CROSS_FLAGS" GLIB_H="$GLIB_H" GLIB_CONFIG_H="$GLIB_CONFIG_H" + set +e + cd .. +fi +#### End of hooking support + echo "[+] All done for qemu_mode, enjoy!" exit 0 |