Skip to content

Repository of important ETH attacks, based on smart contract vulnerabilities.

Notifications You must be signed in to change notification settings

joswha/Replaying-ETH-Attacks

Repository files navigation

Replaying Ethereum Hacks

Repo inspired by cmichel's Replaying Ethereum hacks

YT Videos to follow soon!

Implemented attacks:

🎯 Proof of Weak Hands Coin $800k stolen

Setup

npm i

Hardhat

This repo uses hardhat. Hacks are implemented as hardhat tests in /test.

The tests run on a local hardnet network but it needs to be forked from mainnet. To fork the Ethereum mainnet, you need access to an archive node like the free ones from Alchemy.

Environment variables

Add your Ethereum archival node URL to the .env file

cp .env.template .env
# fill out
ARCHIVE_URL=https://eth-mainnet.alchemyapi.io/v2/...

Replaying hack

The hacks are implemented as hardhat tests and can therefore be run as:

yarn hardhat test test/<name>.js

About

Repository of important ETH attacks, based on smart contract vulnerabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published