Skip to content

Latest commit

 

History

History
76 lines (55 loc) · 2.75 KB

File metadata and controls

76 lines (55 loc) · 2.75 KB

Prerequisites

Install Oracle Virtual Box
Install Virtual Box Image - Lubuntu 24.04

Docker Installation

Install using the apt respository
Follow Steps 1-3

Image Procurement

Pull FOX image from dockerhub

docker pull adamstorek/fox:latest

Run

docker run --privileged --network='host' -d --name="optfuzz_eval" -it adamstorek/fox:latest

docker exec -it optfuzz_eval /bin/bash

Compiling and Running Target

Step 1:

cd targets
Step1

Step 2:

run: ./unzip_seeds.sh
Step2

Step 3:

cd zlibunc
Step3

Step 4:

run: ./preinstall.sh
Step4

Step 5:

run: ./build_aflpp.sh optfuzz_nogllvm
Step5

Step 6:

cd binaries/optfuzz_build
Step6

Step 7:

Go to File -> New Tab

  • This should open a new main terminal window
  • Note: the terminal should NOT be within the FOX terminal/image

Step7

Step 8:

Run command: sudo bash -c "echo core >/proc/sys/kernel/core_pattern"
Enter password if necessary
Run command: sudo vim /proc/sys/kernel/core_pattern
Step8

Step 9:

Confirm that file core_pattern has ONLY the word "core" inside
Step9

then esc, :q to exit the vim file

Step 10:

Return to FOX terminal/image

run: /workspace/OptFuzzer/afl-fuzz -k -p wd_scheduler -i ../../seeds_fuzzbench -o out -- ./zlib_uncompress_fuzzer
Step10

Finished:

Finished