Last active
July 11, 2019 20:33
-
-
Save wesinator/aa5584e323d7507dacc9b0318f656fa8 to your computer and use it in GitHub Desktop.
Quarian session key algorithm in Python - https://threatconnect.com/divide-and-conquer/
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
| # https://threatconnect.com/divide-and-conquer/ | |
| def quarian_session_key(C2_nonce, implant_nonce): | |
| session_key = '' | |
| for i in range(0,8): | |
| c = C2_nonce[i] ^ implant_nonce[i] | |
| if c == 0: | |
| c = ~i | |
| # treats session key as a string - this may not work correctly | |
| session_key += c | |
| return session_key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment