nicolasgarcia214/damn-vulnerable-defi-foundry
关于
Damn Vulnerable DeFi - Foundry 版本
商业与金融实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Damn Vulnerable DeFi - Foundry Version ⚒️
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
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 🕹️
- 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
- Clone This Repo and install dependencies
git clone https://github.com/nicolasgarcia214/damn-vulnerable-defi-foundry.git
cd damn-vulnerable-defi-foundry
forge install
- Code your solutions in the provided
[NAME_OF_THE_LEVEL].t.solfiles (inside each level's folder in the test folder) - Run your 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]
If the challenge is executed successfully, you've passed!🙌🙌
Tips and tricks ✨
- In all challenges you must use the account called attacker. In Forge, you can use the cheat code
prankorstartPrank. - To code the solutions, you may need to refer to the Foundry Book.
- In some cases, you may need to code and deploy custom smart contracts.
Preinstalled dependencies
ds-test for testing, forge-std for better cheatcode UX, and openzeppelin-contracts for contract implementations.
探索相关项目
加载中…