Skip to content

Capture The Ethers CTF solutions using Hardhat, Ethers@6, Typescript.

Notifications You must be signed in to change notification settings

PurrProof/capture-the-ether-solved

Repository files navigation

Capture The Ethers game solutions with Hardhat/Typescript/Mocha.js/Ethers

Thank you @smarx for the game.

Quickstart

git clone https://github.com/PurrProof/capture-the-ethers-solved.git
cd capture-the-ethers-solved
cp .env.example .env
pnpm it

Useful snippets

const prov = new _ethers.providers.Web3Provider(window.ethereum);
await prov.getStorageAt(await contract.address,2)
sol2uml storage -d -u $RPC_NODE_URL -c Privacy -s $PRIVACY_INSTANCE_ADDRESS -o storage.svg ./Privacy.sol
cast send -i -r $RPC_NODE_URL --create $BYTECODE
cast call -i -r $RPC_NODE_URL $ADDRESS $FUNCTION_ID

Solutions

0. Warmup -> Deploy

1. Warmup -> Call me

2. Warmup -> Choose a nickname

3. Lotteries -> Guess the number

4. Lotteries -> Guess the secret number

5. Lotteries -> Guess the random number

6. Lotteries -> Guess the new number

7. Lotteries -> Predict the future

8. Lotteries -> Predict the block hash

9. Math -> Token Sale

10. Math -> Token Whale

11. Math -> Retirement Fund

12. Math -> Mapping

13. Math -> Donation