Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.2 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.2 KB

capture-the-ether

My solutions to capture-the-ether CTF. In-depth explanations for each level can be read on my blog.

Progress: 11600/11600 Rank: 56

Leaderboard

Development

npm i

You need to configure environment variables:

cp .env.template .env
# fill out

Pick a mnemonic and use the resulting first ETH account as the challenger account on capture-the-ether.

Hardhat

This repo uses hardhat to run the CTF challenges. Challenges are implemented as hardhat tests in /test.

To fork the Ropsten testnet, you need an archive URL like the free ones from Alchemy.

Running challenges

Optionally set the block number in the hardhat.config.ts hardhat network configuration to the ropsten head block number such that the challenge contract is deployed.

# fork ropsten but run locally
npx hardhat test test/warmup/call-me.ts
# once everything works, run all txs on ropsten testnet to gain points
npx hardhat test test/warmup/call-me.ts --network ropsten