Created
June 3, 2015 10:34
-
-
Save PaulSec/ddd6cd514506aff84a75 to your computer and use it in GitHub Desktop.
Android Malware Pracs 2
This file contains 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
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