Created
June 6, 2016 01:52
-
-
Save CreateRemoteThread/85c2ea78ba8de11cdaa14c75e740d633 to your computer and use it in GitHub Desktop.
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 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