Skip to content

Instantly share code, notes, and snippets.

@CreateRemoteThread
Created June 6, 2016 01:52
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 CreateRemoteThread/85c2ea78ba8de11cdaa14c75e740d633 to your computer and use it in GitHub Desktop.
Save CreateRemoteThread/85c2ea78ba8de11cdaa14c75e740d633 to your computer and use it in GitHub Desktop.
import base64
from Crypto.Cipher import AES
from Crypto import Random
# pad = lambda s: s + (BS - len(s) % BS) * chr(BS - len(s) % BS)
# unpad = lambda s : s[:-ord(s[len(s)-1:])
KEY = "58897d583d888978b62469889d584472"
PW = "XIANJIAN "
if __name__ == "__main__":
# print len(PW)
d = base64.b64decode(open("flag.txt").read().rstrip())
c = AES.new(KEY,AES.MODE_ECB,PW)
print c.decrypt(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment