ethernaut-ctf
July 24, 2019 ยท View on GitHub
Based on https://ethernaut.openzeppelin.com/
You can find the writeups at notonlyowner.com
Install dependencies
- Run
npm installto install both Ganache-cli and Truffle
Usage
- Start
ganache-clion port 7545 withnpx ganache-cli --port 7545 - Deploy contracts to local blockchain running
npx truffle migrate - 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 afterPrivacy.