My solutions to capture-the-ether CTF. In-depth explanations for each level can be read on my blog.
Progress: 11600/11600 Rank: 56
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.
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.
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