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

ReEntrancy Exercise 1

Intro

In the following exercise, you will have to hack a Bank dApp and steal all the deposited money. The bank is implemented using the code in the smart contract EtherBank.sol.

Accounts

Tasks

Task 1

Steal all the ETH that is stored in the bank smart contract (of ALL the accounts). Send the stolen ETH to your attacker's account.

Task 2

Protect the EtherBank.sol smart contract so your attack wouldn't succeed.

Task 3

Find two additional ways to protect the smart contract.