Giter Club home page Giter Club logo

web3-graveyard's Introduction

Web3 Graveyard

Web3 Graveyard is a database of past Web3 hacks

Gravedigger

gravedigger is a helper utility to query database for specific information and also update it with new hacks

Install

pip3 install -e . from the root of this directory. It will install the tool in edit mode (create symlinks), means you can edit the code and changes will be reflected directly to your environment.

Usage

auth : Sets up the github authentication token

gravedigger auth GithubAuthToken

find : Reverse Search an attacker address which was involved with a particular project

gravedigger find 0xa0c7BD318D69424603CBf91e9969870F21B8ab4c 

range : Find hacks which happened within a given date range

gravedigger range -s "1 August 2022" -e "7 August 2022"

s and e are optional parameters, if not provided will pick the default values

update : Update the database with new hacks

gravedigger update audius

Tips

  • Date provided, either for finding hacks within a range or updating the database should follow the strict format as %d Month %Y (1 June 2022)
  • While updating new hacks the input addresses are supposed to be block explorer links like https://etherscan.io/address/0xA62c3ced6906B188A4d4A3c981B79f2AABf2107F

PoCs/Analysis

The repo also contains some analysis and PoCs for past exploits.

Setup

Install Dependencies

npm install

Add API and Private Keys

Add your node api keys in the .env file

Modify Block Number

All the tests fork respective chains at a certain block number. Modify them as per the needs.

Run PoC Tests

All the tests are organized in their respective protocol/project's folder.

npx hardhat test .\test\<project_name>\<test>

Exploit Analysis

The detailed analysis for every exploit can be found in the README.md file in every \contracts\<project_name>\ directory.

web3-graveyard's People

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.