Skip to content

Instantly share code, notes, and snippets.

@eybisi
Last active February 22, 2020 08:15
Show Gist options
  • Save eybisi/6acccad769d682815e258d7ad17cd2d0 to your computer and use it in GitHub Desktop.
Save eybisi/6acccad769d682815e258d7ad17cd2d0 to your computer and use it in GitHub Desktop.
cerberus string decryption,
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