Please refer to the user guide section in this repository to create a container with the included Dockerfile.
- Start the container as explained in last section.
- Clone the proyect in the container with
git clone -b main --single-branch --depth 1 https://github.com/lambdaclass/starknet_in_rust.git
. - Install dependencies with
apt-get install -y libgmp-dev python3-venv python3-dev
. - Run
make deps
andsource starknet-venv/bin/activate
to have a working environment. - 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.
Once you find a crash, use the command cargo hfuzz run-debug fuzzer <crash file>
to debug.