Home

Awesome

🧑🏻‍🚀 my foundry framework to solve ethernaut: write-ups + solutions

<br>
🔋 this project contains solutions for openzeppelin's ethernaut wargames. leveraging foundry, each level has a test set (test/*.t.sol), a script set (script/*.s.sol), and a write-up. some levels also have an exploit at src/*.sol.
🔋 to read the full notes about this work, check out my mirror publication: on hacking systematically with foundry. you are welcome to submit solutions and pull requests.
🔋 by the way, do you remember overthewire? here is my WeChall profile from playing it in 2014.
<br> <p align="center"> <img width="400" src="https://github.com/go-outside-labs/ethernaut-foundry-writeups-sol/assets/138340846/32fb029d-852e-493b-8f79-939fe39d5455"> </p>

levels

<br>
✅ 01. Fallback - exploiting fallback():
✅ 02. Fallout - exploiting constructor():
✅ 03. Coin Flip - exploiting pseudo-randomness:
✅ 04. Telephone - exploiting tx.origin:
✅ 05. Token - exploiting integer overflows:
✅ 06. Delegation - exploiting delegatecall:
✅ 07. Force - exploiting payable contracts:
✅ 08. Vault - exploiting private functions:
✅ 09. King - exploiting transfer(msg.value):
✅ 10. Reentrancy - exploiting reentrancy:
✅ 11. Elevator - exploiting interfaces:
🔜 12. Privacy:
🔜 13. Gatekeeper One:
🔜 14. Gatekeeper Two:
🔜 15. Naught Coin:
🔜 16. Preservation:
🔜 17. Recovery:
🔜 18. Magic Number:
🔜 19. Alien Code:
🔜 20. Denial:
✅ 21. Shop - exploiting interfaces II:
🔜 22. Dex:
🔜 23. Dex Two:
🔜 24. Puzzle Wallet:
🔜 25. Motorbike:
🔜 26. Doubly Entry Point:
🔜 27. Good Samaritan:
🔜 28. Gatekeeper Three:
🔜 29. Switch:
<br>

installing

<br> <br>

running each level

<br> <br> <br> <br> <br>
<br>
(like solving these types of problems? perhaps you are autistic cypherpunk, then?)