buuctf misc 刷题记录(一)

#金三胖 将gif分离出来。 #N种方法解决 一个exe文件,果真打不开,在kali里分析一下:file KEY.exe,ascii text,试txt,base64转图片。 #大白 改高就好。 #基础破解 zip提示4位数字,brute force,base64 decode。 #你居然赶我走 用HxD打开,在最后有flag。 #LSB 用stegsolve工具打开,发现PNG的文件头,save binary,scan QR code。 #ningen 分离出加密压缩包,提示4位数字,brute force。 #wireshark 提示网页,发现http,有个login的包,追踪http流(或者双击这个包),搜索keyword:password。 #假如给我3天光明 结合题目,图片下方是盲文,对照盲文ascii对照表,获得一串密码,摩斯音频,在线神器(https://morsecode.world/international/decoder/audio-decoder-adaptive.html?tdsourcetag=s_pcqq_aiomsg),(大小写都试试)。 #来首歌吧 摩斯音频。 #FLAG 用stegsolve工具打开,发现PK提出来,修复一下,文件没有后缀,改.txt。 #爱因斯坦 分离出加密压缩包,密码在图片属性里。 #easycap 用wireshark打开,追踪第一个包。 #被嗅探的流量 用wireshark打开,筛选http数据包,发现有post 一个图片,双击。 #梅花香自苦寒来 (备注提示画图)HxD打开发现不少hex,复制到Notepad++,转ascii,发现是size="3px">坐标,去掉(),,变空格,在kali下,:gnuplot,plot "1.txt",scan QR code。 #荷兰宽带泄露 .bin文件,工具RouterPassView,搜索username。 #后门查杀 用D盾扫。 #另外一个世界 用HxD打开,最后有一串binary,binary转ascii。 #九连环 foremost分离出asd 文件图片拿不出来,binwalk能够,看来之后俩个要都试试,qwe.zip加密压缩包,分出来的jpg图像是steghide隐写 :php

steghide extract -sf good-已合并.jpg

#面具下的flag 分离出flag.vmdk,kali下对.vmdk unzip:7z x flag.vmdk,在线brainfuck ook。 #数据包中的线索 用wireshark打开,导出http对象,base64转图片。 #webshell后门 用D盾扫。 #被劫持的神秘礼物 用wireshark打开,发现login包,追踪tcp流,根据题目找到帐号密码,md3哈希。 #弱口令 一、加密的zip,压缩包注释里有不可见字符,复制到sublime,Morce decode,获得一张png图片 二、lsb隐写(工具地址:https://github.com/cyberinc/cloacked-pixel):html

python lsb.py extract 1.png 1.txt 123456

#Beautiful_Sise 一、半张QR code< 二维码恢复地址:https://merricx.github.io/qrazybox/?tdsourcetag=s_pctim_aiomsg 数出QR code是2929的尺寸,QR Code Version是2929(ver.3),点击右上角的紫色,Format Info Pattern里的Error Correction Level和Mask Pattern对着QR code试试就好,对照着把黑白块点出来,Etract QR Information。 #喵喵喵 用stegsolve工具打开,发现Red plane 0有问题,发现有png图像,提取出来,补全height,获得完整QR code,听说题目提示了NTFS,扫描出flag.pyc,pyc反编译,导出到文件,剩下就是脚本解密了。 #秘密文件 wireshark,对流量包binwalk分析分离,brute force。 #蜘蛛侠呀 一、wireshark,列出流量包的的隐藏文件:python

tshark -r out.pcap -T fields -e data > out.txt

二、用脚本去掉重复line(out1.txt) 三、再用脚本把16进制字符串转ascii(out2.txt) 四、用脚本去掉每行前面9个字符(out3),HxD打开,504B 五、flag.gif时间隐写,在ubuntu下查看每帧停顿时间linux

identify -format “%T” flag.gif

20换0,50换1git

011011010100010000110101010111110011000101110100

bin->hex->asciigithub

mD5_1t

#吹着贝斯扫二维码 一、拼图(ps:改图片的宽高),扫出BASE Family Bucket ??? 85->64->85->13->16->32。 二、base32 decode获得:web

3A715D3E574E36326F733C5E625D213B2C62652E3D6E3B7640392F3137274038624148

三、base16 decode获得:shell

q]>WN62os<^b]!;,be.=n;v@9/17'@8bAH

四、rot13 decode得:ubuntu

d]>JA62bf<^o]!;,or.=a;i@9/17'@8oNU

五、base85手机在线decode获得:vim

PCtvdWU4VFJnQUByYy4mK1lraTA=

六、base64 decode获得:

<+oue8TRgA@rc.&+Yki0

七、base68 decode获得:

ThisIsSecret!233

#[SWPU2019]神奇的二维码 一、binwalk分离,word文档n多个base64,comEON_YOuAreSOSoS0great用密码解出加密的压缩包,摩斯音频音频摩斯解密就好。 #[SWPU2019]漂流的马里奥 一、ntfs工具一扫就出来了。 #[SWPU2019]伟大的侦探 一、用010编辑器,编码方式挨个试,EBCDIC发现了压缩包密码,跳舞的小人。 #[HDCTF2019]你能发现什么蛛丝马迹吗 img 内存取证 分析镜像:volatility -f memory.img imageinfo 查看进程:volatility -f memory.img --profile=Win2003SP1x86 pslist 查看以前运行过的进程: volatility -f memory.img --profile=Win2003SP1x86 userassist 提取explorer.exe进程:volatility -f memory.img --profile=Win2003SP1x86 memdump -p 1992 --dump-dir=./ 扫QR code:jfXvUoypb8p3zvmPks8kJ5Kt0vmEw0xUZyRGOicraY4=,加上给了key和vi(偏移量),aes decode,模式(ECB)。 #[SWPU2019]Network 一、flag3.zip用<font color="#FF3333" size="3px">ziperello爆破</font>,密码183792,doc文件的数字提示就是帧数, ..... ../... ./... ./... ../,<font color="#FF3333" size="3px">敲击码</font>,得wllm dXBfdXBfdXA=,<font color="#FF3333" size="3px">base64</font>解得up_up_up,能够解出flag2.zip,<font color="#FF3333" size="3px">HxD</font>靠后的地方看到flag。 #[GXYCTF2019]佛系青年 一、zip伪加密 二、title和图片都提示佛,与佛论禅。 #从娃娃抓起 一、题目提示2种不一样的汉字编码,第一种是<font color="#FF3333" size="3px">中文电码</font>:

0086 1562 2535 5174

解出:人工智能 二、第二种是<font color="#FF3333" size="3px">五笔编码</font>:

bnhn s wwy vffg vffg rrhy fhnv

解出:也要从娃娃抓起。 #hashcat 1文件没有后缀,用file命令后,后缀为.doc,打开时须要密码,破解办公文件用Accent OFFICE Password Recovery v5.1 CracKed By Hmily[LCG][LSG]工具爆破,9919,结果word文件显示乱码,xls打不开,改后缀为pptx,第7张白白的,搜索flag,有,替换颜色。 捕获.PNG #[RoarCTF2019]forensic(内存取证) 一、分析镜像:volatility -f mem.raw imageinfo 二、查看进程:volatility -f mem.raw pslist --profile=Win7SP1x86_23418 观察到的可疑进程:

  • TrueCrypt.exe 磁盘加密工具
  • notepad.exe 自带记事本
  • mspaint.exe 自带画图工具
  • iexplore.exe IE浏览器
  • DumpIt.exe 内存镜像提取工具

提取notepad.exe进程试试:volatility -f mem.raw --profile=Win7SP1x86_23418 memdump -p 3524 -D ./,获得3524.dmp,foremost分离,zip给加密了 既然用了画图工具,那就提取内存的图片:volatility -f mem.raw --profile=Win7SP1x86_23418 filescan | grep -E 'jpg|png|jpeg|bmp|gif',发现有张无标题.png, 2.jpg 无标题.png是windows画图工具默认的文件名,提取无标题.png:volatility -f mem.raw --profile=Win7SP1x86_23418 dumpfiles -Q 0x000000001efb29f8 -n --dump-dir=./ <a href="https://sm.ms/image/EHiTvbwoLhgSMC2" target="_blank"><img src="https://i.loli.net/2020/01/18/EHiTvbwoLhgSMC2.png" width="50%" height="50%" ></a> 1YxfCQ6goYBD6Q。 ##3九、[RoarCTF2019]黄金6年 一、用HxD打开,在结尾处发现base64,发现是RAR,(ps:转为hex的时候,要把02的空格改成00,不知道哪里出问题了-.-),save后rar却加密了,用pr打开<font color="#FF3333" size="3px">mp4</font>,准备逐帧查看,02:14,04:27,08:05,10:02处发现QR code

iwantplayctf。

#[安洵杯 2019]Attack 一、foremost命令分离出压缩包,wk,加密了。用wireshark打开,文件->导出对象->http->save all,发现lsass.dmp,lsass.dmp放到mimikatz.exe目录下,在mimikatz_trunk\x64目录下执行下列命令。

privilege::debug sekurlsa::minidump lsass.dmp sekurlsa::logonpasswords full

获得密码解压。 #Business Planning Group 一、bpg文件头 <a href="https://sm.ms/image/F42LU9OlXprynsM" target="_blank"><img src="https://i.loli.net/2020/01/18/F42LU9OlXprynsM.png" width="50%" height="50%" ></a> 在<font color="#FF3333" size="3px">HxD</font>靠后发现<font color="#FF3333" size="3px">bpg图片</font>,用honeyview工具打开,<font color="#FF3333" size="3px">base64</font>。 #凤毛麟角 一、用wireshark打开流量包,文件->导出对象->http->保存到文件夹 获得前半个falg <a href="https://sm.ms/image/o2mgBY6JIt4nl9p" target="_blank"><img src="https://i.loli.net/2020/01/20/o2mgBY6JIt4nl9p.png" ></a> 后半个flag在流114里找到,吐血。 <a href="https://sm.ms/image/8PTRugIhaJsH6wp" target="_blank"><img src="https://i.loli.net/2020/01/20/8PTRugIhaJsH6wp.png" width="50%" height="50%"></a> #voip 一、用<font color="#FF3333" size="3px">wireshark</font>打开流量包,Telephony->RTP->Show All Stream,Analize,Player,Decode,Play 或者电话->RTP->RTP流->分析->播放流, <a href="https://sm.ms/image/ztKxq4jspSP6f9E" target="_blank"><img src="https://i.loli.net/2020/01/22/ztKxq4jspSP6f9E.png" width="80%" height="40%"></a> <a href="https://sm.ms/image/S5m2yGBEHfkvgdP" target="_blank"><img src="https://i.loli.net/2020/01/25/S5m2yGBEHfkvgdP.png" width="50%" height="50%"></a> (ps:open brace左花括号close brace右花括号) <font color="#8b008b" size="4px">知识点:用wireshark提取voip中的音频流</font> #被偷走的文件 用wireshark打开流量包,应该是ftp protocol,不会整,emmm binwalk分离出一个加密的压缩包,brute force就是flag。 <a href="https://sm.ms/image/hncrDqyBsSKG8HF" target="_blank"><img src="https://i.loli.net/2020/01/29/hncrDqyBsSKG8HF.png" width="40%" height="30%"></a> #findme 5张图都拖到kali ,一、二、3打不开 <font color="#009fcc" size="3px">1.png </font> crc32校验暴真实的宽高 找之前的脚本(修改crc32key):

import zlib
import struct
crc32key = 0x000C4ED3
data = bytearray(b'\x49\x48\x44\x52\x00\x00\x00\x14\x00\x00\x00\x14\x08\x06\x00\x00\x00')
for w in range(4095):
    width = bytearray(struct.pack('>i',w))
    for h in range(4095):
        height = bytearray(struct.pack('>i',h))
        for x in range(4):
            data[x+4] = width[x]
            data[x+8] = height[x]
        crc32result = zlib.crc32(data)
        if crc32result == crc32key:
            print(width,height)

<a href="https://sm.ms/image/Opd5BfrETm3KX4l" target="_blank"><img src="https://i.loli.net/2020/01/30/Opd5BfrETm3KX4l.png" width="50%" height="50%"></a> 修改完宽高图片仍是糊的 用010editor打开,解析png(没想到啊 <a href="https://sm.ms/image/gZL6AErP9pqzvlt" target="_blank"><img src="https://i.loli.net/2020/01/30/gZL6AErP9pqzvlt.png" width="50%" height="50%"></a> 发现chunk[2]和[3]缺乏IDAT头 直接在原来的16进制上改就好 1.png放到stegsolve,在蓝色通道有张QR code,扫出:ZmxhZ3s0X3 <font color="#009fcc" size="3px">2.png </font> 用HxD打开2.png后,发现里面有好多文件,在010Editor发现第7块有问题,和zip又很像 使用HxD把7z(37 7A 03 04)所有替换成zip(50 4B 03 04) <a href="https://sm.ms/image/ZjU67r8HlafDCzp" target="_blank"><img src="https://i.loli.net/2020/01/30/ZjU67r8HlafDCzp.png" width="50%" height="50%"></a> 在618.txt中获得:You find it: 1RVcmVfc <font color="#009fcc" size="3px">3.png </font> chunk[0]到[6]的crc值错误,像hex <a href="https://sm.ms/image/EsW5IeJYm1jkL8y" target="_blank"><img src="https://i.loli.net/2020/01/30/EsW5IeJYm1jkL8y.png" ></a>

a=[0x33, 0x52, 0x6c, 0x5a, 0x33, 0x30, 0x3d]
for i in a:
    print(chr(i), end="")

获得:3RlZ30= <font color="#009fcc" size="3px">4.png </font> <a href="https://sm.ms/image/9ui2mQVIMdyxf7K" target="_blank"><img src="https://i.loli.net/2020/01/30/9ui2mQVIMdyxf7K.png" width="50%" height="50%"></a> another part:cExlX1BsY <font color="#009fcc" size="3px">5.png </font> 用HxD打开,在最后发现:I give U a gift:Yzcllfc0lN <a href="https://sm.ms/image/RX1OJtoMCbKFNEv" target="_blank"><img src="https://i.loli.net/2020/01/30/RX1OJtoMCbKFNEv.png" width="50%" height="50%"></a> 最后,5段连起来(15423):ZmxhZ3s0X3Yzcllfc0lNcExlX1BsY1RVcmVfc3RlZ30= <font color="#8b008b" size="4px">总结:使用010editor对文件进行解析 exiftool工具查看图片信息 </font> #zips 一、对222.zip爆破 <a href="https://sm.ms/image/zs7dFOX4BQYJV3W" target="_blank"><img src="https://i.loli.net/2020/01/31/zs7dFOX4BQYJV3W.png" width="50%" height="50%"></a> 二、111.zip是伪加密,解压后有一个setup.sh和加密的zip 运行一下setup.sh里的python代码,emmm(如今的time和比赛时的time不同,掩码用15????????.??吧) <a href="https://sm.ms/image/6J4kr5iSGcUlYZa" target="_blank"><img src="https://i.loli.net/2020/01/31/6J4kr5iSGcUlYZa.png" width="50%" height="50%"></a> <font color="#8b008b" size="4px">考点:破解zip(伪加密、爆破、掩码攻击) </font> #菜刀666 一、foremost命令分离出一个加密的压缩包 二、菜刀的话,就在显示过滤器下命令:http.request.method=POST,追踪第一条流,即流7,在http请求中z2参数数一大串16进制,开头FFD8,jpg了,放到HxD,妥。 #[SUCTF2018]single dog 一、foremost获得一个文本 二、 <a href="https://sm.ms/image/aFGjvZ3PrnA9VRM" target="_blank"><img src="https://i.loli.net/2020/02/19/aFGjvZ3PrnA9VRM.png" with="50%" height="50%"></a> aaencode decode,https://www.qtool.net/decode #[QCTF2018]X-man-A face 一、QR code2个角用win自带的3D画图工具补全 二、base32 decode #followme 一、过滤http protocol,看到有些login的包,追踪流 <a href="https://sm.ms/image/SiThj4Gzu8tWb9X" target="_blank"><img src="https://i.loli.net/2020/02/09/SiThj4Gzu8tWb9X.png" width="50%" height="50%"></a> #[GXYCTF2019]gakki 一、图片藏了一个加密压缩包 二、压缩包是用弱口令加密的 三、 <a href="https://sm.ms/image/aM2nYheSlzFc5vB" target="_blank"><img src="https://i.loli.net/2020/04/05/aM2nYheSlzFc5vB.png" ></a> 词频统计。 #[BJDCTF2020]纳尼 一、补全gif文件头GIF89A(47 49 46 38 39 61) 二、base64 decode #[BJDCTF2020]鸡你太美 一样是补全gif头 #[BJDCTF2020]你猜我是个啥 用HxD打开后,发现是png,假的QR code,结果flag在HxD最后 #[BJDCTF2020]认真你就输了 foremost分离xls,扒拉了几下文件,在某个文件中有flag.txt #[BJDCTF2020]藏藏藏 foremost分离jpg,doc里放了QR code #[BJDCTF2020]just_a_rar 加密压缩包的文件名也太直接了 unzip后张jpg图片 <a href="https://sm.ms/image/mkRo5CXd2bAYapy" target="_blank"><img src="https://i.loli.net/2020/02/11/mkRo5CXd2bAYapy.png" width="50%" height="50%"></a> #[GUET-CTF2019]KO ook deocde #[HBNIS2018]excel破解 HxD打开,搜索keyword:ctf #[BJDCTF2020]一叶障目 这个png在windows下能够打开,但在linux下打不开,猜想图片宽高被改了 crc32校验用了以前能用的脚本运行不出结果 而后先试改宽,图片变了 改高图片基本不变,就不断改高的值 #[HBNIS2018]低个头 题目名称,哈哈哈,keyboard cipher

EWAZX RTY TGB IJN IO KL

#[HBNIS2018]caesar 题目名称很明显,caesar decode #[HBNIS2018]来题中等的吧 Morse decode,不知道最后一个b为何不用 #[安洵杯 2019]easy misc 一、foremost分离png,获得2张同样的图片,blind watermark <a href="https://sm.ms/image/8o3kY2PvW47epBs" target="_blank"><img src="https://i.loli.net/2020/04/05/8o3kY2PvW47epBs.png" ></a> 二、加密压缩包注释里提示:FLAG IN ((√2524921X85÷5+2)÷15-1794)+NNULLULL,7位数字+NNULLULL进行mask attack <a href="https://sm.ms/image/9YmbuLCIPZhv4K7" target="_blank"><img src="https://i.loli.net/2020/02/13/9YmbuLCIPZhv4K7.png" width="50%" height="50%"></a> 三、对11.txt用脚本进行词频统计,hint.txt讲取前16位:etaonrhisdluygw 结合decode.txt,获得:QW8obWdlWT9pMkF-sd5REtRQSQWjVfXiE/WSFTajBtcw=,解完是这样的啊,但... #[DDCTF2018](╯°□°)╯︵ ┻━┻ 一、一大串的16进制,先2个一组分开,脚本:

s = "d4e8e1f4a0f7e1f3a0e6e1f3f4a1a0d4e8e5a0e6ece1e7a0e9f3baa0c4c4c3d4c6fbb9b2b2e1e2b9b9b7b4e1b4b7e3e4b3b2b2e3e6b4b3e2b5b0b6b1b0e6e1e5e1b5fd"
a = ""

for i in range(0,len(s),2):
    a = a+"0x"
    a += s[i:i+2]
    a += ","

print(a)

二、再用脚本转ascii,一堆乱码,而后ascii的范围在0~127,这些16进制全都超过了127 都减去128(0x80),转ascii,小脚本:

a=[0xd4,0xe8,0xe1,0xf4,0xa0,0xf7,0xe1,0xf3,0xa0,0xe6,0xe1,0xf3,0xf4,0xa1,0xa0,0xd4,0xe8,0xe5,0xa0,0xe6,0xec,0xe1,0xe7,0xa0,0xe9,0xf3,0xba,0xa0,0xc4,0xc4,0xc3,0xd4,0xc6,0xfb,0xb9,0xb2,0xb2,0xe1,0xe2,0xb9,0xb9,0xb7,0xb4,0xe1,0xb4,0xb7,0xe3,0xe4,0xb3,0xb2,0xb2,0xe3,0xe6,0xb4,0xb3,0xe2,0xb5,0xb0,0xb6,0xb1,0xb0,0xe6,0xe1,0xe5,0xe1,0xb5,0xfd]
for i in a:
    print(chr(i-0x80), end="")

#[De1CTF2019]Mine Sweeping 一、打开文件是Unity3D mine sweeping game,纯玩确定是不行 用DnSpy去反编译exe,将Mine Sweeping_Data\Managed\Assembly-CSharp.dll拖入工具,找每次点击鼠标的函数 <a href="https://sm.ms/image/3bR4BHzpskfGtmV" target="_blank"><img src="https://i.loli.net/2020/02/14/3bR4BHzpskfGtmV.png" width="70%" height="70%"></a> 将游戏over的条件改成false,踩雷的话游戏都会继续,编译->保存 填到最后几个格子的时候,出现QR code #[BSidesSF2019]zippy 一、全是tcp protocol,流0发现信息 <a href="https://sm.ms/image/pmba7WOhxCQoHd5" target="_blank"><img src="https://i.loli.net/2020/02/14/pmba7WOhxCQoHd5.png" ></a> 二、流1有PK,save #USB 一、unzip 233.rar时,提示png文件头损坏,搜索7A,改成74,能够了,嘿嘿 二、 png在stegsolve叭出一张QR code

ci{v3erf_0tygidv2_fc0}

三、 <a href="https://sm.ms/image/zPAdWZpL9eNloqG" target="_blank"><img src="https://i.loli.net/2020/02/15/zPAdWZpL9eNloqG.png" width="50%" height="50%"></a> 四、、将keyboard data保存到file tshark -r key.pcap -T fields -e usb.capdata > usbdata.txt 五、用脚本提取(网上有) 六、维吉尼亚解密,再fence decode

参考连接:https://www.freebuf.com/column/199854.html #[BSidesSF2019]table-tennis 都有DNS、TCP、TLS、ICMP流 在ICMP流有html,过滤ICMP base64 decode #[SCTF2019]电单车

题目描述:截获了一台电动车的钥匙发出的锁车信号,3分钟以内,我要得到它地址位的所有信息。flag内容二进制表示便可。

一、拖入au,放大wave forms后,短波为0,长波为0,整理后: 0 0111010010101010011000100 0111010010101010011000100 中间 地址位的20个bit:01110100101010100110 参考连接:https://www.freebuf.com/articles/wireless/191534.html #[HDCTF2019]信号分析

题目描述:xx同窗使用 hackcube 截获到了一段停车杆的遥控信息,你能还原这个原始信号吗?flag格式:flag{md5(获得的信号格式)}
hint1:参考:https://unicorn.360.com/hackcube/forum.php?mod=viewthread&tid=13&extra=page%3D1
hint2:试试波形分析吧!

选为波形dB(W),用au看到的地址码为:

FFFFFFFF0001

#[SUCTF 2019]Game 一、在html中看到:ON2WG5DGPNUECSDBNBQV6RTBNMZV6RRRMFTX2===,base32,得 fake flag:suctf{hAHaha_Fak3_F1ag} 二、png拉到stegsolve,发现U2FsdGVkX1+zHjSBeYPtWQVSwXzcVFZLu6Qm0To/KeuHg8vKAxFrVQ==,base64解完是乱码,TripleDES decode(fake flag as key) #[RCTF2019]draw 找了logo编译器,着实玩不来 https://www.calormen.com/jslogo/,害,在线运行一哈 <a href="https://sm.ms/image/27lXkh6yaU1YcxD" target="_blank"><img src="https://i.loli.net/2020/02/25/27lXkh6yaU1YcxD.png" width="60%" height="60%"></a> #[DDCTF2018]第四扩展FS

题目:D公司正在调查一块儿内部数据泄露事件,锁定嫌疑人小明,取证人员从小明手机中获取了一张图片引发了怀疑。这是一道送分题,提示已经在题目里,平常违规审计中频次有时候很是重要。

jpg图片,在详细信息里发现备注,图片藏有一个加密zip title给了hint:频次,so,词频分析便可。(这题比赛的时候好像每一个人拿的文件不同,emm,运行出来的提交不上 #music m4a格式的音频文件,播放不了,原来大量A1出现,mp4文件被异或 <a href="https://sm.ms/image/9DOv38jzeVAGbfp" target="_blank"><img src="https://i.loli.net/2020/03/05/9DOv38jzeVAGbfp.png" width="80%" height="80%"></a> #[ACTF新生赛2020]outguess jpg属性备注发现加密的社会主义核心价值观

abc

题目的hint:outguess加密隐写

outguess -k "abc" -r mmm.jpg 1.txt

#[ACTF新生赛2020]NTFS数据流 题目hint了NTFS流隐写,也打开下zip,500个txt <a href="https://sm.ms/image/6VkpjDMEQvAgI95" target="_blank"><img src="https://i.loli.net/2020/03/05/6VkpjDMEQvAgI95.png" width="50%" height="50%"></a> 导出文件 #[ACTF新生赛2020]base64隐写 base64隐写 #[ACTF新生赛2020]明文攻击 <a href="https://sm.ms/image/GuyPNzLT7AEjoQJ" target="_blank"><img src="https://i.loli.net/2020/03/05/GuyPNzLT7AEjoQJ.png" ></a>

<a href="https://sm.ms/image/6KtWgeUjG3k2fxD" target="_blank"><img src="https://i.loli.net/2020/03/05/6KtWgeUjG3k2fxD.png" width="60%" height="60%"></a> emmm,还没停?几秒后中止试试 #[ACTF新生赛2020]swp 文件->导出http对象,发现secret.zip,伪加密 swp放到linux是一个隐藏文件(ls -a,swp文件确实存在),linux下非正常退出vi编辑文本后会自动生成.swp文件 使用vim -r 文件名 恢复flag文件 <a href="https://sm.ms/image/YudWj8v7hDJl9wE" target="_blank"><img src="https://i.loli.net/2020/03/05/YudWj8v7hDJl9wE.png" width="60%" height="60%"></a> #[ACTF新生赛2020]剑龙 <font color="#009fcc" size="3px">pwd.txt </font> aaencode解密

welcom3!;

<font color="#009fcc" size="3px">hh.jpg </font> 在属性->主题发现一个密钥 <a href="https://sm.ms/image/JZNiGzTLhMw6DXt" target="_blank"><img src="https://i.loli.net/2020/03/09/JZNiGzTLhMw6DXt.png" width="40%" height="40%"></a>

@#$%^&%%$)

<font color="#009fcc" size="3px">O_O </font> <a href="https://sm.ms/image/VAmulgbnTWkIhRw" target="_blank"><img src="https://i.loli.net/2020/03/06/VAmulgbnTWkIhRw.png" width="90%" height="50%"></a> 再看题目:剑龙(Stegosaurus),stegosaurus隐写

python stegosaurus.py -x O_O.pyc

补充:hh.jpg是steghide隐写,(key为以前的aaencode解密)

steghide extract -sf hh.jpg

获得:

U2FsdGVkX1/7KeHVl5984OsGUVSanPfPednHpK9lKvp0kdrxO4Tj/Q==

des解密,获得:

think about stegosaurus

#[*CTF2019]otaku 题目描述:

One day,you and your otaku friend went to the comic expo together and he had a car accident right beside you.Before he died,he gave you a USB hard disk which contained this zip.Please find out his last wish.
提示:The txt is GBK encoding.

zip伪加密、word隐写、明文攻击 <a href="https://sm.ms/image/HyQze7VPlBgRWtD" target="_blank"><img src="https://i.loli.net/2020/03/06/HyQze7VPlBgRWtD.png" width="60%" height="60%"></a> png图片,用stegsolve工具或zsteg均可

zsteg flag.png

#[GWCTF2019]huyao 盲水印

python decode.py --original huyao.png --image stillhuyao.png --result fl.png

#[INSHack2018]Self Congratulation <a href="https://sm.ms/image/V286yEeuclfDpGM" target="_blank"><img src="https://i.loli.net/2020/03/12/V286yEeuclfDpGM.png" width="40%" heigth="40%"></a> 在字母I左上角有黑白相间块,黑为1,白为0 获得:

00110001001
10010001100
11001101000
01101010011
01100011011
100111000

bin转hex,再转ascii。 #[BSidesSF2020]mpfrag <a href="https://sm.ms/image/14dGDtlvRnO3SZs" target="_blank"><img src="https://i.loli.net/2020/03/10/14dGDtlvRnO3SZs.png" width="40%" height="40%"></a> 一、根据mpeg文件头:000001BA,提取出bin文件中的mpeg <a href="https://sm.ms/image/mzU39GY7SAvNtgs" target="_blank"><img src="https://i.loli.net/2020/03/10/mzU39GY7SAvNtgs.png" width="70%" height="70%"></a>

SF-G0lden-Gl0w-1849

二、利用file disk.bin查看文件类型 <a href="https://sm.ms/image/4MdxmhLb1oEKupP" target="_blank"><img src="https://i.loli.net/2020/03/10/4MdxmhLb1oEKupP.png" ></a> disk.bin是一个ext2的文件系统 挂载disk.bin文件系统

mount disk.bin /mnt/

<a href="https://sm.ms/image/yTclYIkXB4h6e1o" target="_blank"><img src="https://i.loli.net/2020/03/10/yTclYIkXB4h6e1o.png" ></a> 报错以下:

wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.
错误的fs类型,错误的选项,/ dev / loop0上的超级块错误,缺乏代码页或帮助程序,或其余错误。

就是文件系统中的超级块被损坏, 提取文件系统中的8193块的备份超级块(超级块占用1K的空间)

dd if=disk.bin of=sb.bin bs=1024 skip=8193 count=1
  • if=infile
  • of=outfile
  • bs=bytes:同时设置读入/输出的块大小为bytes个字节
  • skip= blocks :从输入文件开头跳过blocks个块后再开始复制
  • count:只拷贝输入的blocks块。)

将备份超级块放入损坏的超级块:

dd if=sb.bin of=disk.bin bs=1024 conv=notrunc seek=1
  • conv=notrunc:不截短输出文件
  • seek=blocks:从输出文件开头跳过blocks个块后再开始复制。

利用binwalk命令分离disk.bin。

#、[XMAN2018排位赛]AutoKey(AutokeyCipher) 一、

MPLRVFFCZEYOUJFJKYBXGZVDGQAURKXZOLKOLVTUFBLRNJESQITWAHXNSIJXPNMPLSHCJBTYHZEALOGVIAAISSPLFHLFSWFEHJNCRWHTINSMAMBVEXPZIZ

(这个在py3能够) 二、找来网上的脚本运行: http://www.practicalcryptography.com/cryptanalysis/text-characterisation/quadgrams/ http://www.practicalcryptography.com/cryptanalysis/stochastic-searching/cryptanalysis-autokey-cipher/

参考连接:https://ctf-wiki.github.io/ctf-wiki/crypto/classical/polyalphabetic-zh/#_13 #[XMAN2018排位赛]通行证 题目描述:

xman最强王者开始了,拿到通行证,开始你的王者之路。
XMan通行证flag格式:xman{.*}
hint:这是个签到题;
hint:base64解码
进行栅栏密码加密
使用凯撒密码进行解密

一、base64解码,获得:

kanbbrgghjl{zb____}vtlaln

二、栅栏密码加密(http://www.atoolbox.net/Tool.php?Id=777)

kzna{blnl_abj_lbh_trg_vg}

三、凯撒解密。

#[XMAN2018排位赛]file 一、挂载img镜像文件 <a href="https://sm.ms/image/32AoxtdHpkz7Ler" target="_blank"><img src="https://i.loli.net/2020/03/22/32AoxtdHpkz7Ler.png" ></a> 二、打开mnt是几张jpg和gif的猫图,然而没东西了。 三、这个是ext4文件系统,在linux下,使用extundelete命令恢复被删除的目录或文件:

extundelete file.img --restore-all

<a href="https://sm.ms/image/JkuUzcfAZeDY7PB" target="_blank"><img src="https://i.loli.net/2020/03/22/JkuUzcfAZeDY7PB.png" ></a>

<a href="https://sm.ms/image/o5FNpTLWrZzImCg" target="_blank"><img src="https://i.loli.net/2020/03/22/o5FNpTLWrZzImCg.png" ></a>

最后卸载挂载的文件

umount mnt

#[UTCTF2020]Zero 题目描述:

This fle seems to be too large given how much text it
contains, but I can find zero evidence of the flag. Maybe you'll have better luck than me?

一、 <a href="https://sm.ms/image/Aq5KBuwjro3Dt2N" target="_blank"><img src="https://i.loli.net/2020/04/06/Aq5KBuwjro3Dt2N.png" ></a> 一开始觉得是词频分析,看题目描述,文件大小的话,有1.9k。 看了wp才知道是零宽度字符隐写,而后题目也有hint。 用在线工具https://330k.github.io/misc_tools/unicode_steganography.html 参考wp: https://www.tdpain.net/progpilot/nc2020/zero/ https://razvioverflow.github.io/ctfwriteups/UTCTF2020/

相关文章
相关标签/搜索