TAMUctf 2025
比赛地址:TAMUctf
比赛时间:29 Mar 2025 06:00 CST - 31 Mar 2025 06:00 CST
Start here!
Howdy World
Challenge
Howdy World
Welcome to TAMUctf 2025!
Please enter the flag from tamuctf.com to prove that you are a real person :)
The flag format is
gigem{.*}unless otherwise specified
Solution
签到题
1 | gigem{welcome!} |
Forensics
Deflated
Challenge
Deflated
Author:
floctoI heard ZipCrypto Store has a vulnerability, so I’ve used ZipCrypto Deflate instead. Can you still get the flag?
Notes
- Flag matches regex
gigem{[A-Z0-9_]+}.- Do not try to brute force the password. It is not in any password list.
Solution
附件是一个经过加密的压缩包
题目说不要爆破,但试了一下也不是伪加密,此时打开压缩包发现里面有一个.git目录
.git目录内有部分内容是有固定格式的,这就意味着有极大概率是知道部分明文的内容的,再加上压缩包用的是ZipCrypto Deflate,这一切线索都指向了明文攻击

在 Git 中,.git/HEAD 文件通常存储当前所在的分支(或直接指向某个 commit)
默认情况下,它的内容格式如下
1 | ref: refs/heads/<branch-name> |
因此先从.git/HEAD入手,构造一个明文文件plain.txt(至于为什么是main,是因为现在大多默认分支都是main,我一试就成功了)
1 | ref: refs/heads/main |
然后利用bkcrack进行明文攻击获取密钥
1 | bkcrack -C encrypted.zip -c .git/HEAD -p plain.txt -o 0 |
输出如下
1 | bkcrack 1.7.1 - 2024-12-21 |
然后利用密钥f2635bca a91bec3a ec81bdf9可以生成一个无密码的新 ZIP 文件
1 | bkcrack -C encrypted.zip -k f2635bca a91bec3a ec81bdf9 -D decrypted.zip |
输出如下
1 | bkcrack 1.7.1 - 2024-12-21 |
解压之后用VSCode打开,在源代码管理能找到一条commit记录

把它签出得到之前提交的代码,运行一下就能看到flag了

1 | gigem{DONT_FEEL_2_DEFLATED} |
- 标题: TAMUctf 2025
- 作者: Aristore
- 创建于 : 2025-03-31 10:15:00
- 更新于 : 2025-04-04 02:08:42
- 链接: https://www.aristore.top/posts/TAMUctf2025/
- 版权声明: 版权所有 © Aristore,禁止转载。