Last active
March 16, 2017 14:34
-
-
Save intrd/a1c99739bce352ea0f65c0b42531ce71 to your computer and use it in GitHub Desktop.
Keygen solution to SHX5 - rev400-again
This file contains hidden or 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
| #!/usr/bin/python | |
| ## Keygen solution to SHX5 - rev400-again | |
| # A big thanks to r00tc0d3r 4 help w/ this solution! | |
| # @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/ | |
| magic = [0xD1, 0x93, 0x30, 0x43, 0x7F, 0x29, 0x38, 0x36, 0x1D, 0x2B, 0x6F, 0x5E, 0x31, 0x0D, 0x61, 0x65, 0x65, 0x41, 0x21, 0x60, 0x12] | |
| xor_key = magic[0] | |
| str="" | |
| for i in range(1, 21): | |
| xor_key = xor_key ^ magic[i] | |
| #print xor_key | |
| str += chr(xor_key) | |
| print(str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment