How to Replicate DeFi Hacks with Foundry
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...
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
repo link is broken 404😐
Link fixed in the pinned comment.