This is a POC of a hack that took place on Ethereum Block 1718497, where the hacker walked away with around 3.8M in ETH exploiting the TheDAO contract by draing funds. This attack was the first incident for re-entrancy.
You will need to install foundry to run the exploit. Link for installtion foundry.
- Run the POC, I am assuming you have already cloned & built the repo.
forge clean
forge test -vv --fork-url <YOUR_API_PROVER> --fork-block-number 1599207 -m testDaoHack