My solutions to Damn Vulnerable DeFi using Nicolás García's Foundry setup.
Working through the solutions currently. I'll update this README as I go.
- Unstoppable
- Naive receiver
- Truster
- Side Entrance
- The Rewarder
- Selfie
- Compromised
- Puppet
- Puppet V2
- Free Rider
- Backdoor
- Climber
- Wallet Mining
- Puppet V3
- ABI Smuggling
- 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
Advanced ways to use foundryup
, and other documentation, can be found in the foundryup package
- Clone This Repo and install dependencies
git clone https://github.com/nicolasgarcia214/damn-vulnerable-defi-foundry.git
cd damn-vulnerable-defi-foundry
forge install
- Run the exploit for a challenge
make [CONTRACT_LEVEL_NAME]
or
./run.sh [LEVEL_FOLDER_NAME]
./run.sh [CHALLENGE_NUMBER]
./run.sh [4_FIRST_LETTER_OF_NAME]