MrToph / capture-the-ether

My solutions to https://capturetheether.com/

Home Page:https://capturetheether.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

My solutions to https://capturetheether.com/

https://capturetheether.com/


Languages

Language:TypeScript 64.0%Language:Solidity 36.0%