Awesome Open Source
Awesome Open Source

ethernaut-ctf

Based on https://ethernaut.openzeppelin.com/

You can find the writeups at notonlyowner.com

Install dependencies

  • Run npm install to install both Ganache-cli and Truffle

Usage

  1. Start ganache-cli on port 7545 with npx ganache-cli --port 7545
  2. Deploy contracts to local blockchain running npx truffle migrate
  3. Execute exploit with npx truffle exec exploits/<filename>

Note: I initially started coding the exploits as Truffle external scripts, that's why most of them are to be executed with npx truffle exec. Another totally valid approach, and somewhat simpler, would be to just build the exploits as Truffle tests. This is what I started doing after Privacy.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Security (8,726
Ethereum (6,975
Solidity (6,365
Smart Contracts (2,246
Web3 (1,052
Truffle Framework (174
Related Projects