ChainShot / parity-bug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parity Hack

Let's re-create the parity wallet hack by forking Ethereum before the hacker took the funds.

Setup

Create a .env file with a MAINNET_URL set to an alchemy mainnet URL.

Execution

Take a look at the tests in test/test.js. You'll want to complete the two TODOs:

  1. For the first TODO, replicate taking control of the logic contract (tx 0x9dbf03...)
  2. For the second TODO, replicate withdrawing the funds (tx 0xeef10f...)

Once you have completed these two TODOs you should be able to run the tests (npx hardhat test) and see all three test cases passing.

About


Languages

Language:JavaScript 81.5%Language:Solidity 18.5%