Skip to content

Instantly share code, notes, and snippets.

@xd4rker
Created April 14, 2018 17:29
Show Gist options
  • Save xd4rker/5d9cf839c34778f561f02105ca4ad3ec to your computer and use it in GitHub Desktop.
Save xd4rker/5d9cf839c34778f561f02105ca4ad3ec to your computer and use it in GitHub Desktop.
pragma solidity ^0.4.21;
contract Crack {
uint8 public answer;
bytes32 answerHash = 0xdb81b4d58595fbbbb592d3661a34cdca14d7ab379441400cbfa1b78bc447c365;
function Crack() public {
for(uint8 i = 0; i <= 2000; i++) {
if(keccak256(i) == answerHash) {
answer = i;
break;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment