A set of challenges to learn offensive security of smart contracts. Featuring interesting challenges loosely (or directly) inspired by real world exploits.
Created by @0xToshii
Visit mrstealyocrypto.xyz
Primer & Hints: degenjungle.substack.com/p/mr-steal-yo-crypto-wargame
Note: main branch includes solutions, run git checkout implement
to see problems without their respective solutions
-
Install foundry: foundry-book
-
Clone this repo and install dependencies
forge install
- Code your solutions and run the associated test files
forge test --match-path test/challenge-name.sol
- In all challenges you must use the account called attacker (unless otherwise specified).
- In some cases, you may need to code and deploy custom smart contracts.