下载到了一个TXT文件如下
1 2 3 4 5 6 7 8 9 10 11
| ctfctfshowctf ctfshowctfctf ctfshow showshowctf showshowshowshowshow showshowshowshowshow showshowctfctfctf showctfctfctf showshowctfctfctf ctfctfctfshowshow showctfshowctf showctfctf showctfctfctfctf showshowshowshowshow showctfctf showctfshowctf showshowctfctfctf showshowctfctfctf ctfctfctfshowshow showctfshowctf ctfctfctfctfctf ctfctfshowshowshow ctfctfctfctfshow showctfctf ctfctfctfctfshow ctf showctfctfctf ctfshow showshowshowshowshow showshowshowshowshow showshowctfctfctf showctfctf
|
如果这是一个字符加密的话,那么前面四行猜测一定是类似于flag的字符,找一下摩斯密码f是..-.正好对应ctf是.
show是-
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| s=''' ctfctfshowctf ctfshowctfctf ctfshow showshowctf showshowshowshowshow showshowshowshowshow showshowctfctfctf showctfctfctf showshowctfctfctf ctfctfctfshowshow showctfshowctf showctfctf showctfctfctfctf showshowshowshowshow showctfctf showctfshowctf showshowctfctfctf showshowctfctfctf ctfctfctfshowshow showctfshowctf ctfctfctfctfctf ctfctfshowshowshow ctfctfctfctfshow showctfctf ctfctfctfctfshow ctf showctfctfctf ctfshow showshowshowshowshow showshowshowshowshow showshowctfctfctf showctfctf ''' s=s.replace("ctf",".") s=s.replace("show","-") s=s.replace("\n"," ") print(s)
|
得到如下字符串,前面的FLAG已经出来了,后面还需要解码,看起来是一个16进制的编码,但是第一个是00,那么就猜测是GBK或者Unicode,因为00肯定编译不出来字符,因此只能是三个字符或者四个字符编码,尝试一下Unicode编码还真解出来了
1
| FLAG007B73CD60DC773C524D4EBA007D
|
每四个字符加一个\u
1
| \u007B\u73CD\u60DC\u773C\u524D\u4EBA\u007D
|