Last active
February 22, 2020 08:15
-
-
Save eybisi/6acccad769d682815e258d7ad17cd2d0 to your computer and use it in GitHub Desktop.
cerberus string decryption,
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
import sys | |
from Crypto.Cipher import ARC4 | |
import base64 | |
f = open(sys.argv[1],"r") | |
r = f.readlines() | |
for l in r: | |
c = ARC4.new(l[:12].encode("utf8")) | |
h = base64.b64decode(l[12:-1]).decode("utf-8") | |
try: | |
print(l[:12],c.decrypt(bytes.fromhex(h)).decode("utf-8")) | |
except: | |
print("abc") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment