- Sample solutions and automated tests for all ethernaut levels using the truffle framework (https://truffleframework.com/).
- Ethernaut is a Capture the Flag (CTF) type competition where you must hack victim solidity contracts provided by (https://ethernaut.zeppelin.solutions/).
- 0. Hello Ethernaut
- 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. Locked
- 18. Recovery
- 19. MagicNumber
- 20. Alien Codex
- 21. Denial
- 22. Shop
Clone the repo.
git clone https://github.com/shorttermmem/ethernaut.git
Install required dependencies.
npm install
Run a specific test for the contract 'Basic' on the local development blockchain.
truffle test test/basic.test.js --network dev