Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.33 KB

README.md

File metadata and controls

54 lines (44 loc) · 1.33 KB

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

How To Validate Solutions 🕹️

  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

Advanced ways to use foundryup, and other documentation, can be found in the foundryup package

  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 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]