Ethernaut Delegation Solution: Foundry Walkthrough
Trace a fallback delegatecall and claim Delegation ownership by sending the pwn() selector.
Walkthroughs and solutions for smart contract CTF challenges
Trace a fallback delegatecall and claim Delegation ownership by sending the pwn() selector.
Inspect the legacy transfer check, trigger unsigned underflow and verify the resulting token balances.
Trace tx.origin and msg.sender, then claim Telephone ownership through a helper contract.
Inspect Ethernaut level 2's allocation contract, find its ownership bug and verify the solution with Foundry.
A Foundry walkthrough of Ethernaut level 1: inspect the contribution contract, take ownership and withdraw its balance.
Inspect Ethernaut level 3's coin-flip game and build a Foundry solution that wins ten consecutive rounds.