← Index
Source: docs/zsub/hacking-Instructions-1/reentrancy-2.md (auto-generated by scripts/generate-docs-html.mjs — edit the .md, not this file)

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

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.