Giter Site home page Giter Site logo

ethernaut-foundry's Introduction

Ethernaut Reforged ๐Ÿ‘ฉโ€๐Ÿš€๐Ÿ”จ

This repo is a customized Foundry environment where devs can create/solve/submit ethernaut challenges without the need for interaction with the Ethernaut CTF webiste.

Setup

  • Have Foundry downloaded
  • Clone this repo
  • Copy the items in .env.example with your own credentials
  • Open /script/setup/EthernautHelper.sol and edit the HERO variable to your own address
  • Get some testnet eth (Sepolia is recommended as ether is easier to comeby)

Completing A Challenge

While the challenge contracts are part of the repo (challenge-contracts), it's recommended that you use interfaces when interacting with the challenge contracts to avoid issues compiling when requiring old solidity versions and older versions of OpenZeppelin contracts for some of the challenges.

When you think you've created the script that solves the challenge call the following:

source .env
forge script script/solutions/SCRIPT_FILE_NAME.s.sol:SCRIPT_CONTRACT_NAME --rpc-url $SEPOLIA_RPC

This will run a local simulation of your transaction off chain, if your script passes the challenge, run the same forge script ... command again but add --broadcast to broadcast the transaction(s) on chain.

Further Updates

This repo is still a work in progress, and eventually all 29 of the Ethernaut challenges will be added. The description and hints from the ethernaut site for each challenge will be bought over as well as adding some extra resources based on the specific vulnerability the challenge highlights including educational content and real world examples.

ethernaut-foundry's People

Contributors

mccoady avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.