题目的链接:http://www.shiyanbar.com/ctf/1917
1.首先题目给出的是摩尔斯电码:
在下面的网站上解密:https://www.cryptool.org/en/cto-codings/morse-code
可以看到结果是:
2. 回来再看这道题目中的另一个提示:
那么将KIQLWTFCQGNSOO用QWE密码解密试试,在这里我写了个Python脚本用来进行QWE密码加密解密:
1 import argparse 2 str1="QWERTYUIOPASDFGHJKLZXCVBNM" 3 str2="ABCDEFGHIJKLMNOPQRSTUVWXYZ" 4 parser=argparse.ArgumentParser() 5 parser.add_argument('mode',help='encipherment/decipherment') 6 args=parser.parse_args() 7 str3='' 8 if args.mode=='e': 9 en_str=raw_input('Please input encrypted string:') 10 for s in en_str: 11 str3=str3+str1[str2.index(s.upper())] 12 elif args.mode=='d': 13 de_str=raw_input('Please input decryption string:') 14 for s in de_str: 15 str3=str3+str2[str1.index(s.upper())] 16 print('result:%s'%str3)
使用示例:python 文件名.py e(加密)
python 文件名.py d(解密)
用脚本解密结果:
3.题目是围在栅栏中的爱,那么最后一层加密就应该是栅栏密码了,用下面这个网站解密栅栏密文:http://ctf.ssleye.com/railfence.html
(不过在那之前先将文该密文倒序输出:
)
然后在该网站中解密,key=2时结果就出来了:
提交,然后通过。