File: README.md

package info (click to toggle)
aflplusplus 4.21c-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 14,496 kB
  • sloc: ansic: 110,361; cpp: 16,725; sh: 4,855; python: 3,793; makefile: 963; javascript: 515; java: 43; sql: 3; xml: 1
file content (40 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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](./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

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

### C

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

### python

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

## Results

TODO: add results here.