Skip to content

Proof of concept exploits reproducing the largest smart contract exploits

Notifications You must be signed in to change notification settings

VarunVerma7/Defi-Hacks-Recreated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defi-Hacks-Recreated

Proof of concept exploits reproducing the largest smart contract exploits

Setup

Install foundry with the setup instructions here:

https://book.getfoundry.sh/getting-started/installation

Acquire an RPC url from here: https://dashboard.alchemy.com/

And set the https rpc url as an environment variable via:

export MY_RPC_URL=https:://eth-mainnet.g.alchemy.com/v2/(YOUR_API_KEY_HERE)

Use --match flag to run a specific test, so for example, lesson 1 do

forge test -vvv --fork-url $MY_RPC_URL --match ^testStax

since we want to run the test called testStaxExecuteHack and for lesson 2 do

forge test -vvv --fork-url $MY_RPC_URL --match ^testVisr

since we want to run the test testVisr

About

Proof of concept exploits reproducing the largest smart contract exploits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published