Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 723 Bytes

README.md

File metadata and controls

34 lines (21 loc) · 723 Bytes

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