How to Replicate DeFi Hacks with Foundry

Sdílet
Vložit
  • čas přidán 4. 07. 2024
  • Pepin, a community manager at Immunefi, gives you a simple and straightforward introduction on how to use Foundry to safely fork a local copy of the blockchain and test real exploits that actually happened.
    Immunefi is the leading bug bounty platform for web3 with the world's largest bounties.
    Resources:
    - immunefi.com
    - github.com/immunefi-team/Web3...

Komentáře • 3

  • @immunefi
    @immunefi  Před rokem

    Link to the repo: github.com/SunWeb3Sec/DeFiHackLabs
    List of commands used:
    git clone github.com/SunWeb3Sec/DeFiHackLabs.git
    cd DeFiHackLabs
    git submodule update --init --recursive
    cat src/test/SwapX_exp.sol
    forge test --contracts src/test/SwapX_exp.sol -vvv

  • @spyboy3924
    @spyboy3924 Před rokem

    repo link is broken 404😐

    • @immunefi
      @immunefi  Před rokem +1

      Link fixed in the pinned comment.