Skip to content

The smart contract security training ground for developers, security researchers and educators.

License

Notifications You must be signed in to change notification settings

bentobox19/damn-vulnerable-defi

 
 

Repository files navigation

Damn Vulnerable DeFi

Install forge

Install dependencies

forge install

Preparations

Some tests may need to fork from mainnet. Create an .env file. You can copy the sample .env-sample:

export MAINNET_FORKING_URL=https://eth-mainnet.g.alchemy.com/v2/9yUn7YrS814EkZ-2xI0Ex0VFHcPAUmRw

Run the entire test suit

forge test

Running a single challenge

forge test --match-contract Unstoppable

Add traces

There are different level of verbosities, -vvvvv is the maximum.

forge test --match-contract Unstoppable -vvvvv

About

The smart contract security training ground for developers, security researchers and educators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 99.7%
  • Dockerfile 0.3%