CTF校队暑期练习2021.7.8
CTF题目 July. 8th 2021
vault-door-1
This vault uses some complicated arrays! I hope you can make sense of it, special agent. The source code for this vault is here: VaultDoor1.java
Hint: Look up the charAt() method online.
下载下来一个.java文件:VaultDoor1.java
把checkPassword中字符按charAt排好序,得到flag。
Insp3ct0r
Kishor Balan tipped us off that the following code may need inspection:
https://jupiter.challenges.picoctf.org/problem/44924/ (link) or http://jupiter.challenges.picoctf.org:44924
Hint1: How do you inspect web code on a browser?
Hint2: There’s 3 parts
flag被分成三段。
- 第一段在检查元素里。
- 第一段在css文件里。
- 第二段在js文件里。
fd
Mommy! what is a file descriptor in Linux?
- try to play the wargame your self but if you are ABSOLUTE beginner, follow this tutorial link: https://youtu.be/971eZhMHQQw
ssh [email protected] -p2222 (pw:guest)
The flag IS NOT in the regular format
ssh连进去,ls后显示三个文件:fd、fd.c、flag。
cat flag无权限。cat fd.c查看fd的源码。
|
|
只要能让buf的值为LETMEWIN\n
即可拿到flag。
buf内容是从文件描述符fd对应的文件中读取的,就让fd为0,就能从输入读了。
所以运行./fd 4660
,输入LENMEWIN。其中4660是0x1234的十进制表示。
传回来两行:
good job :)
mommy! I think I know what a file descriptor is!!
第二行即为flag。
- Author: HuaHuaY
- Link: https://www.huahuaorz.com/post/CTF%E6%A0%A1%E9%98%9F%E7%BB%83%E4%B9%A0/CTF%E6%A0%A1%E9%98%9F%E6%9A%91%E6%9C%9F%E7%BB%83%E4%B9%A02021.7.8/
- License: This work is under a 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议. Kindly fulfill the requirements of the aforementioned License when adapting or creating a derivative of this work.