/damn-vulnerable-defi-foundry

Damn Vulnerable DeFi - Foundry Version

Primary LanguageSolidityMIT LicenseMIT

Damn Vulnerable DeFi - Foundry Version ⚒️

My Solution for the famous damn-defi problems in foundry.

Twitter Follow

Visit damnvulnerabledefi.xyz

Acknowledgement

Big thanks to Tincho who created the first version of this game and to all the fellows behind the Foundry Framework and also Nicolás from whom i cloned the repo for the foundry version

Damn Vulnerable DeFi is the wargame to learn offensive security of DeFi smart contracts.

Throughout numerous challenges you will build the skills to become a bug hunter or security auditor in the space. 🕵️‍♂️

How To play 🕹️

  1. Install Foundry

First run the command below to get foundryup, the Foundry toolchain installer:

curl -L https://foundry.paradigm.xyz | bash

Then, in a new terminal session or after reloading your PATH, run it to get the latest forge and cast binaries:

foundryup
  1. Clone This Repo and install dependencies
git clone https://github.com/nicolasgarcia214/damn-vulnerable-defi-foundry.git
cd damn-vulnerable-defi-foundry
forge install
  1. Run your exploit for a challenge
make [CONTRACT_LEVEL_NAME]

which essentially the command

forge test --match-contract [LEVEL_NAME] 

If the challenge is executed successfully, you've passed!🙌🙌

Solutions

You can view my solutions in the respective test folders' Readme files.