BUUCTF:喵喵喵 | 您所在的位置:网站首页 › 喵汪喵汪汪汪喵喵汪汪汪喵汪喵喵汪喵喵喵汪 › BUUCTF:喵喵喵 |
题目地址:https://buuoj.cn/challenges#%E5%96%B5%E5%96%B5%E5%96%B5
果然藏了东西,导出flag.pyc 利用Pyc反编译在线网站进行反编译:https://tool.lu/pyc/ 得到如下代码 #!/usr/bin/env python # visit http://tool.lu/pyc/ for more information import base64 def encode(): flag = '*************' ciphertext = [] for i in range(len(flag)): s = chr(i ^ ord(flag[i])) if i % 2 == 0: s = ord(s) + 10 else: s = ord(s) - 10 ciphertext.append(str(s)) return ciphertext[::-1] ciphertext = [ '96', '65', '93', '123', '91', '97', '22', '93', '70', '102', '94', '132', '46', '112', '64', '97', '88', '80', '82', '137', '90', '109', '99', '112']写个脚本把ciphertext解出来 #Author: mochu7 def decode(arg1): ciphertext = arg1[::-1] flag = '' for i in range(len(ciphertext)): if i % 2 == 0: s = int(ciphertext[i]) - 10 else: s = int(ciphertext[i]) + 10 s = s ^ i flag += chr(s) print(flag) if __name__ == '__main__': ciphertext = [ '96', '65', '93', '123', '91', '97', '22', '93', '70', '102', '94', '132', '46', '112', '64', '97', '88', '80', '82', '137', '90', '109', '99', '112'] decode(ciphertext) PS C:\Users\Administrator\Downloads\新建文件夹> python .\decode.py flag{Y@e_Cl3veR_C1Ever!} |
CopyRight 2018-2019 实验室设备网 版权所有 |