Home

Awesome

Ethernaut Solutions

Welcome, anon! Ethernaut is OpenZeppelin's Web3/Solidity based wargame played in the EVM, inspired by overthewire.org, which I look forward to completing sometime in the future lol. Every level is a smart contract that needs to be hacked (for example, taking ownership of the given contract or draining all of its funds). There are 29 levels available at the time of writing.

Many consider Ethernaut to be a good introductory CTF for those interested in smart contract security as the initial levels are fairly straightforward, and all levels can easily be completed in Remix by copying the contract code and deploying it at the provided instance. I am using the Sepolia network to complete this challenge. You can easily get SepoliaETH from a Sepolia PoW Faucet, which you can visit directly or run yourself.

The goal of this repository is to provide clear, easy to follow solutions to each Ethernaut level thereby allowing newcomers, and all others interested, to learn about common vulnerabilities, patterns and security considerations in Solidity.

Levels

  1. Fallback
  2. Fallout
  3. Coin Flip
  4. Telephone
  5. Token
  6. Delegation
  7. Force
  8. Vault
  9. King
  10. Re-entrancy
  11. Elevator
  12. Privacy
  13. Gatekeeper One
  14. Gatekeeper Two
  15. Naught Coin
  16. Preservation
  17. Recovery
  18. MagicNumber
  19. Alien Codex
  20. Denial
  21. Shop
  22. Dex
  23. Dex2
  24. Puzzle Wallet
  25. Motorbike
  26. DoubleEntryPoint
  27. Good Samaritan
  28. Gatekeeper Three
  29. Switch