diff options
author | vanhauser-thc <vh@thc.org> | 2021-07-20 14:50:14 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-07-20 14:50:14 +0200 |
commit | 53327f9ee7ee3d8643a5d67f213e19e6425595c7 (patch) | |
tree | 04d73923868fd05174a946934265fe1226cc1df5 | |
parent | 3101e9c88df72755b461e82870879fbe9e7429fa (diff) | |
download | afl++-53327f9ee7ee3d8643a5d67f213e19e6425595c7.tar.gz |
remove realpath dependency
-rw-r--r-- | docs/INSTALL.md | 21 | ||||
-rw-r--r-- | frida_mode/GNUmakefile | 2 | ||||
-rw-r--r-- | frida_mode/many-linux/realpath | 2 |
3 files changed, 20 insertions, 5 deletions
diff --git a/docs/INSTALL.md b/docs/INSTALL.md index fc57f546..f6c126a1 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -74,12 +74,29 @@ and depend mostly on user feedback. To build AFL, install llvm (and perhaps gcc) from brew and follow the general instructions for Linux. If possible avoid Xcode at all cost. +`brew install wget git make llvm` + +Be sure to setup PATH to point to the correct clang binaries and use gmake, e.g.: + +``` +export PATH="/usr/local/Cellar/llvm/12.0.1/bin/:$PATH" +gmake +cd frida_mode +gmake +cd .. +gmake install +``` + afl-gcc will fail unless you have GCC installed, but that is using outdated instrumentation anyway. You don't want that. +Note that afl-clang-lto, afl-gcc-fast and qemu_mode are not working on MacOS. The crash reporting daemon that comes by default with MacOS X will cause -problems with fuzzing. You need to turn it off by following the instructions -provided here: http://goo.gl/CCcd5u +problems with fuzzing. You need to turn it off: +``` +launchctl unload -w /System/Library/LaunchAgents/com.apple.ReportCrash.plist +sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.ReportCrash.Root.plist +``` The `fork()` semantics on OS X are a bit unusual compared to other unix systems and definitely don't look POSIX-compliant. This means two things: diff --git a/frida_mode/GNUmakefile b/frida_mode/GNUmakefile index fad183e1..6b17982d 100644 --- a/frida_mode/GNUmakefile +++ b/frida_mode/GNUmakefile @@ -1,5 +1,5 @@ PWD:=$(shell pwd)/ -ROOT:=$(shell realpath $(PWD)..)/ +ROOT:=$(PWD)../ INC_DIR:=$(PWD)include/ SRC_DIR:=$(PWD)src/ INCLUDES:=$(wildcard $(INC_DIR)*.h) diff --git a/frida_mode/many-linux/realpath b/frida_mode/many-linux/realpath deleted file mode 100644 index 1fdc49a7..00000000 --- a/frida_mode/many-linux/realpath +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -readlink -f -- "$@" |