CTF练习week03

1. base64

CTF练习week03_第1张图片
下载附件
CTF练习week03_第2张图片
Base64解密
CTF练习week03_第3张图片

2. Caesar

CTF练习week03_第4张图片
下载附件
CTF练习week03_第5张图片
凯撒密码解密,当位移为12时得到flag
CTF练习week03_第6张图片

3. Morse

CTF练习week03_第7张图片
下载附件
CTF练习week03_第8张图片
摩斯密码 1替换成-,0替换成.
运用一个简单脚本实现转化

morse="11 111 010 000 0 1010 111 100 0 00 000 000 111 00 10 1 0 010 0 000 1 00 10 110"
morse=morse.replace("1","-")
morse=morse.replace("0",".")
print (morse)

运行脚本得到
CTF练习week03_第9张图片
摩斯密码解密得到flag
CTF练习week03_第10张图片

4. 不仅仅是Morse

CTF练习week03_第11张图片
下载附件
CTF练习week03_第12张图片
用摩斯密码工具将密文转成字母

MAYBEHAVEANOTHERDECODEHHHHAAAAABAABBBAABBAAAAAAAABAABABAAAAAAABBABAAABBAAABBAABAAAABABAABAAABBABAAABAAABAABABBAABBBABAAABABABBAAABBABAAABAABAABAAAABBABBAABBAABAABAAABAABAABAABABAABBABAAAABBABAABBA

在这里插入图片描述
后面部分全是A和B的组合,想到培根加密

AAAAABAABBBAABBAAAAAAAABAABABAAAAAAABBABAAABBAAABBAABAAAABABAABAAABBABAAABAAABAABABBAABBBABAAABABABBAAABBABAAABAABAABAAAABBABBAABBAABAABAAABAABAABAABABAABBABAAAABBABAABBA

培根密码解密得到flag
CTF练习week03_第13张图片

5. 混合编码

CTF练习week03_第14张图片
下载附件
CTF练习week03_第15张图片
看到字符串最后面的==,猜出来是Base64,Base64解密

LzExOS8xMDEvMTA4Lzk5LzExMS8xMDkvMTAxLzExNi8xMTEvOTcvMTE2LzExNi85Ny85OS8xMDcvOTcvMTEwLzEwMC8xMDAvMTAxLzEwMi8xMDEvMTEwLzk5LzEwMS8xMTkvMTExLzExNC8xMDgvMTAw

Unicode 解码,得到

LzExOS8xMDEvMTA4Lzk5LzExMS8xMDkvMTAxLzExNi8xMTEvOTcvMTE2LzExNi85Ny85OS8xMDcvOTcvMTEwLzEwMC8xMDAvMTAxLzEwMi8xMDEvMTEwLzk5LzEwMS8xMTkvMTExLzExNC8xMDgvMTAw

再base64解码

/119/101/108/99/111/109/101/116/111/97/116/116/97/99/107/97/110/100/100/101/102/101/110/99/101/119/111/114/108/100

ascll码转化为字母,得到flag

welcometoattackanddefenceworld

你可能感兴趣的:(CTF)