ReEntrancy Exercise 2
Intro
There is a new NFT project with a lot of hype around it. It's called SuperDuperApes!
Only 50 unique Apes will be minted to the loyal community members of the Apes community.
1 Ape mint per wallet.
You were lucky enough to be chosen and become one of those 50 people since you contributed to the Apes community.
There is a smart contract ApesAirdrop.sol that allows you to mint ONLY 1 NFT, your goal is to hack the smart contract and mint for yourself all the 50 NFT and become Super Duper Rich Ape.
Accounts
- 0 - Deployer & Owner
- 1 - User 1
- 2 - User 2
- 3 - User 3
- 4 - User 4
- 5 - Attacker (You)
Tasks
Task 1
Bypass the 1 Ape per Wallet restriction and make sure you mint ALL the apes for yourself.
Task 2
Protect the ApesAirdrop.sol smart contract so your attack wouldn't succeed.
Task 3
Find two additional ways to protect the smart contract.