D2PFuzz

command module
v0.0.0-...-5d8902e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 11 Imported by: 0

README

D2PFuzz

D2PFuzz is a fuzzer tool for analyze the Ethernet DevP2P protocol. It is able to generate data corresponding to various sub-protocols including discv4 (e.g., Ping, Pong, etc.), discv5, rlpx, and eth according to the specification of Ethernet network communication protocols. and constructs data sequences according to the chain state and time, and adds mutation functions to them to detect the security of Ethernet network communication protocols.

Project Structure

Introduction of some files and directories:

  • README.md: basic information about D2PFuzz
  • generator/: Generator tool for fuzzer
  • d2p/: Ethereum devp2p protocol related
  • fuzzing/ : Mutation tools used in fuzz testing
  • fuzzer : Fuzzer testing tool
  • filler : Data fill tool
  • utils/ : External Toolkit
  • test/: Test Data

Environment

You need to have golang and go-ethereum installed

Install instructions

# Clone the repo to a place of your liking using
git clone git@github.com:AgnopraxLab/D2PFuzz.git
# Enter the repo
cd D2PFuzz
# Build the binary
go build
# Setting environment
./D2PFuzz setenv
# Run the generator
./D2PFuzz generator
# Run the fuzzer
./FuzzyVM run

Setenv

Configure Fuzz's runtime environment and related configurations

Generator

Package generation tests can be performed with this tool

Documentation

Overview

Package main creates a fuzzer for Ethereum DevP2P Protocol implementations.

Directories

Path Synopsis
d2p
Package fuzzer is the entry point for go-fuzz.
Package fuzzer is the entry point for go-fuzz.
Package generator provides means to generate packet tests for Ethereum node.
Package generator provides means to generate packet tests for Ethereum node.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL