This project aims to record solutions for challenges on ethernaut.
On ethernaut, it is available to solve some levels only using browser setups, but often needs tools outside browser, such as truffle or remix.
So I thought reproducable, sharable, recordable project would help some people on new to ethernaut.
Only thing you need is truffle!
bash> sudo npm install truffle -g
project is created by using web3.js
+ truffle
.
- contracts: solidity smartcontracts will be placed.
- scripts: helper scripts will be placed.
- scripts/<level-title>: solution of level.
You have to create .env first, just copy .env.example!
bash> cp .env.example .env
Fill variables!
PRIVATE=blah-blah
WSRPC=wss://polygon-mumbai-bor.publicnode.com
Check commands using --help option
# run command
npm run start -- --help
# deploy
npm run start -- deploy CoinFlip
# deploy with arguments
npm run start -- deploy CoinFlipHack --args 0x6993Db3723F321003f8a047DB7E49fAcd0ce6390
# execute script
npm run start -- execute CoinFlip --args 0x6993Db3723F321003f8a047DB7E49fAcd0ce6390
Resolved means it's done to writing contract & execution script.
# | name | resolved | blog post |
---|---|---|---|
00 | hello ethernaut | won't do | won't do |
01 | Fallback | won't do | link |
02 | Fallout | won't do | won't do |
03 | CoinFlip | done | link |
04 | Telephone | done | link |
05 | Token | done | link |
06 | Delegation | done | link |
07 | Force | done | |
08 | Vault | won't do | |
09 | King | done | |
10 | Re-entrancy | done | |
11 | Elevator | done | |
12 | Privacy | ||
13 | GateKeeperOne | ||
14 | GateKeeperTwo | ||
15 | NaughtCoin | ||
16 | Preservation | ||
17 | Recovery | ||
18 | MagicNumber | ||
19 | Ailen Code | ||
20 | Denial | ||
21 | Shop | ||
22 | Dex | ||
23 | Dex Two | ||
24 | Puzzle Wallet | ||
25 | Motorbike | ||
26 | DoubleEntryPoint | ||
27 | Good Samaritan | ||
28 | GateKeeperThree | ||
29 | Switch | ||
30 | Higher Order | ||
31 | Stake |