Skip to content

Instantly share code, notes, and snippets.

@PaulSec
Created June 3, 2015 10:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulSec/ddd6cd514506aff84a75 to your computer and use it in GitHub Desktop.
Save PaulSec/ddd6cd514506aff84a75 to your computer and use it in GitHub Desktop.
Android Malware Pracs 2
import sys
s = sys.argv[1].decode('unicode-escape')
key = [int(i) for i in sys.argv[2].split(',')]
index, res = 0, ""
for char in list(s):
res += chr(ord(char) ^ key[index])
index = (index + 1) % 5
print ''.join(res)
#$ python decrypt-tool.py 'wSt!)~mm= b@i2%d[' '13,50,4,83,70'
#zapros_informacii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment