Skip to content

RealWorld CTF 5th realwrap challenge

Notifications You must be signed in to change notification settings

iczc/rwctf-5th-realwrap

Repository files navigation

RealWorld CTF 5th - realwrap

Description

WETH on Ethereum is too cumbersome! I'll show you what is real Wrapped ETH by utilizing precompiled contract, it works like a charm especially when exchanging ETH in a swap pair. And most important, IT IS VERY SECURE!

nc ip 20000

faucet: http://ip:8080

RPC(geth v1.10.26 with realwrap patch): http://ip:8545

attachment

Deployment

Prerequisites

  • Docker
  • Docker Compose
  • Git
./deploy.sh

Exploit

Configure the web3 provider and private key in hardhat.config.js, and then run:

export FACTORY_ADDRESS="your factory address"
npx hardhat run scripts/exploit.js --network local