Skip to content

iczc/capture-the-ether-solutions-foundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Capture the Ether Solutions with Foundry Script

Getting Started

  1. Install Foundry

Open your terminal and run the command below to get foundryup:

curl -L https://foundry.paradigm.xyz | bash

Reload your PATH or start a new terminal instance, then run foundryup to install Foundry

  1. Clone this repo and install dependencies
git clone https://github.com/iczc/capture-the-ether-solutions-foundry.git
cd capture-the-ether-solutions-foundry
forge install
  1. Set environment variables

Add .env file to the project directory with the following content:

RPC_URL=rpcendpoint
PLAYER_KEY=yourprivatekey

Replace rpcendpoint and yourprivatekey with appropriate values

  1. Run exploit for a challenge
./run.sh [CAHLLENGE_NAME] [CHALLENGE_ADDRESS]

The challenge name of https://capturetheether.com/challenges/warmup/call-me/ is call-me

About

Capture the Ether Solutions with Foundry Script

Topics

Resources

License

Stars

Watchers

Forks