Skip to content

Instantly share code, notes, and snippets.

@wesinator
Last active July 11, 2019 20:33
Show Gist options
  • Select an option

  • Save wesinator/aa5584e323d7507dacc9b0318f656fa8 to your computer and use it in GitHub Desktop.

Select an option

Save wesinator/aa5584e323d7507dacc9b0318f656fa8 to your computer and use it in GitHub Desktop.
Quarian session key algorithm in Python - https://threatconnect.com/divide-and-conquer/
# 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