tinchoabbate / ethernaut-ctf

Solutions for Ethernaut CTF (https://ethernaut.openzeppelin.com) - Writeups at https://notonlyowner.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Solutions for Ethernaut CTF (https://ethernaut.openzeppelin.com) - Writeups at https://notonlyowner.com

License:MIT License


Languages

Language:Solidity 54.3%Language:JavaScript 45.7%