Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xorhex/f0889685aed3597b95bd490e464cf17e to your computer and use it in GitHub Desktop.
Save xorhex/f0889685aed3597b95bd490e464cf17e to your computer and use it in GitHub Desktop.
Code Snippet 1: Brute Forcing XOR Key
>>> for x in range(0xffffffff):
... if 0x978710a1 ^ x == 0x90909090:
... print(hex(x))
... break
...
0x7178031
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment