diff options
| author | van Hauser <vh@thc.org> | 2022-01-21 08:51:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-21 08:51:29 +0100 |
| commit | 5933e787f90819b467658b63977b1dc472acad29 (patch) | |
| tree | 2fec687da836de4c4604ddefa6bda579a256c3c6 /nyx_mode/README.md | |
| parent | a9d549ca073ca3fc37b63c1fa454c575bba174b9 (diff) | |
| parent | 6ce736aa913363647760d088ef0cb3610a765ff4 (diff) | |
| download | afl++-5933e787f90819b467658b63977b1dc472acad29.tar.gz | |
Merge pull request #1300 from schumilo/dev
add Nyx LTO support (and some other improvements)
Diffstat (limited to 'nyx_mode/README.md')
| -rw-r--r-- | nyx_mode/README.md | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/nyx_mode/README.md b/nyx_mode/README.md index f975c764..9c7a1d1f 100644 --- a/nyx_mode/README.md +++ b/nyx_mode/README.md @@ -46,12 +46,9 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh Nyx uses full system emulation hence your fuzzing targets have to be especially packaged. -**For source code based instrumentation with `afl-clang-fast` for the time -being these must be instrumented to `AFL_LLVM_INSTRUMENT=AFL` to work!** - With your target ready at hand execute the following command (note that for binary-only fuzzing with the special 5.10 kernel switch the -option `instrumentation` below with `process_trace`): +option `instrumentation` below with `processor_trace`): ```shell python3 nyx_mode/packer/packer/nyx_packer.py \ @@ -126,10 +123,9 @@ git clone https://gitlab.gnome.org/GNOME/libxml2 cd libxml2 ``` -Remember that currently only classic AFL instrumentation is supported! +Next, compile libxml2: ``` -export AFL_LLVM_INSTRUMENT=AFL ./autogen.sh ./configure --enable-shared=no make CC=afl-clang-fast CXX=afl-clang-fast++ LD=afl-clang-fast @@ -249,7 +245,7 @@ mkdir /tmp/nyx_custom_agent/ To compile this example, run the following command (remove the `-DNO_PT_NYX` option if you are using KVM-Nyx ): ``` -gcc example.c -DNO_PT_NYX -static -I ./packer/ -o /tmp/nyx_custom_agent/target +gcc example.c -DNO_PT_NYX -static -I ../packer/ -o /tmp/nyx_custom_agent/target ``` Copy both bootstrap scripts into the sharedir: |
