Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Latest commit

 

History

History

fuzzer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

To run this fuzzer

1. Create a container to run it

Please refer to the user guide section in this repository to create a container with the included Dockerfile.

2. Run the fuzzer

  1. Start the container as explained in last section.
  2. Clone the proyect in the container with git clone -b main --single-branch --depth 1 https://github.com/lambdaclass/starknet_in_rust.git.
  3. Install dependencies with apt-get install -y libgmp-dev python3-venv python3-dev.
  4. Run make deps and source starknet-venv/bin/activate to have a working environment.
  5. Run the command HFUZZ_RUN_ARGS="-n 1" cargo hfuzz run fuzzer within the fuzzer folder.

The crashes found will be stored in the hfuzz_workspace folder along with the reports and all the inputs used.

3. Analyze the crash

Once you find a crash, use the command cargo hfuzz run-debug fuzzer <crash file> to debug.