lazymio 8fc249d210
Fix sample script for Unicornafl2 (#1329)
* Fix the sample script for Unicornafl2

* Make it compatible with unicornafl1

* Sync to the latest unicornafl

* Update UNICORNAFL_VERSION

* Sync to latest unicornafl to resolve linkage problem

* Switch to ucafl2
2022-02-14 18:01:37 +01:00
..
2022-01-22 17:22:00 +01:00
2021-01-23 00:02:59 +01:00
2021-06-24 11:11:29 +02:00
2021-01-23 00:02:59 +01:00
2021-01-23 00:02:59 +01:00

Speedtest

This is a simple sample harness for a non-crashing file, to show the raw speed of C, Rust, and Python harnesses.

Compiling...

Make sure you built unicornafl first (../../build_unicorn_support.sh). Build the target using the provided Makefile. This will also run the ./get_offsets.py script, which finds some relevant addresses in the target binary using objdump, and dumps them to different files. Then, follow these individual steps:

Rust

cd rust
cargo build --release
../../../../afl-fuzz -i ../sample_inputs -o out -U -- ./target/release/harness @@

C

cd c
make
../../../../afl-fuzz -i ../sample_inputs -o out -U -- ./harness @@

python

cd python
../../../../afl-fuzz -i ../sample_inputs -o out -U -- python3 ./harness.py @@

Results

TODO: add results here.