PascalCTF Beginners 2025

PascalCTF Beginners 2025
Aristore比赛地址:PascalCTF
比赛时间:19 Mar 2025 23:00 CST - 20 Mar 2025 04:00 CST
复现的题目用🔁标注
Misc
Base N’ Hex
Challenge
Base N’ Hex
AlBovo
I encrypted the flag but I don’t remember in what order. Can you help me?
1 | # basenhex.py |
1 | 3334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333233343634333736313336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353334333433353331333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333736313334363433363631333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433343335333533333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313335333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333533333335333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333436343337333933343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333436353335333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636333334363533363634333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533353333333533343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353335333433343335333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343634333736313334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353335333733383334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533353333333033343635333433343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343334363433373339333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333323334363433373631333633343336333833343635333433373335333133333333333533393335333433353332333636323334363433373631333433393333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333636343334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133373631333436343336363133353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353335333333323335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533353334333533353333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333533343335363133363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436343337363133343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533393337363133343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333933333330333436353334333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333233343634333736313336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363633333436353335333433353331333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353335333333353334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333736313334363433363631333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333533343335333533333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313335333433353331333333303334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333133333331333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353335333333323335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533353334333636323333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333436343337333733343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313337363133343634333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333533333332333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353335333433363632333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133353334333536313336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353335333333353334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533393333333033343635333433343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363333343635333636343334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533353334333636323333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333436343337333933343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343335363133363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436343337363133343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636333334363533363634333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533353333333533343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333533333332333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333233343634333736313336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363634333436353335333433353331333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333736313334363433363631333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433343336363233333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333933373631333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333323335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333436343337333733343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636333334363533343334333533313333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313337363133343635333433343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343634333736313334333133333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353335333333353334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533353333333133343635333433343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333533343336363233333333333533393335333433353332333636323334363533333332333433353333333033353631333433343334363433373339333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303334363633353334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363333343635333433343335333133333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133373631333436343336363133353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343334333636323333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436343337363133343339333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333533333330333436353334333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363333333333353334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133353334333536313336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333133343634333533343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363633333436353336363433343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333736313334363433343334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433343336363233333333333533393335333433353332333636323334363533333332333433353333333033353631333433343334363433373339333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313335333433353631333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363433373631333433393333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333533333331333436353333333233343335333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333323335333933353334333533323336363233343635333333323334333533333330333536313334333433363334333633383334363533343337333533313333333333353339333533343335333233363632333436353333333233343335333333303335363133343334333436343337333733343635333433373335333133333333333533393335333433353332333636323334363533333332333433353333333033353631333433343336333433363338333436353334333733353331333333333335333933353334333533323336363233343635333333323334333533333332333436343337363133363334333633383334363533343337333533313333333333353339333533343335333233363632333436343337363133343339333333303335363133343334333633343336333833343635333433373335333133333333333533393335333433353332333636333334363533343334333433353337363133353631333433343334363533363632 |
Solution
题目对 flag 进行了 10 次随机 Base64 或 Base16 编码后将结果写入 output.txt
文件,共有 210 = 1024 种可能的编码组合
- 从
output.txt
读取密文 - 枚举所有可能的编码顺序并依次解码
- 解码后检查解码结果是否以
pascalCTF{
开头,以}
结尾。如果出现了符合上面条件解就将其输出并终止程序
1 | from base64 import b64decode |
1 | pascalCTF{nex7_T1m3_ch3ck_cyb3rCH3F_$b64-d/e$} |
DNS e pancetta
Challenge
DNS e pancetta
AlBovo
I’ve recently started studying a new cooking book and I think I’ve found the best recipe ever.
Do you wanna read it? Ask my dear friendDNS
!
Solution
翻了一下全是 DNS 的流量,注意到每条流量变化的只有.attacker.com
前面的数字
截取第三条流量的 4c6f72656d206970
,尝试把它转成 ASCII(因为第一条没有)
显然信息就是藏在这些十六进制字符里,只要提取出来拼在一起应该就能拿到 flag 了
先通过过滤出目标 ip 为 172.19.0.2
的流量,也就是只保留了发出的部分
1 | ip.dst == 172.19.0.2 |
Ctrl
+ A
全选把它们复制下来(我还不太会用 wireshark 所以只想到了这种笨方法呜呜呜)
然后把它们粘贴到写好的 Python 脚本里
这个脚本是先将上面的这些十六进制的内容提取并拼接在一起,最后把十六进制转成字节再转成字符串输出
1 | # 实测只有后面这几条有用,前面的太长了就不放了 |
1 | pascalCTF{DNS_b34coning_4ll_over_the_place} |
🔁 Romagnol Prometheus
Challenge
Romagnol Prometheus
Mark-74
Mattia said he was feeling a little mischevious today and sent me these photos, can you help me understand what he’s up to?
Flag format :
pascalCTF{city}
查看提示
The flag is not any of the cities that the coordinates point to, it's all lowercase and the real clue is the message in the metas, not just the coordinates.
查看提示
If you're stuck, just think about this: what would happen if you really dropped that bomb on a map?
Solution
一开始当社工题做了,我还纳闷这题咋不放在 OSINT ,但就是没想到看 Exif😭
先用 exiftool
查看这三张图片的 exif 信息(工具下载地址:ExifTool by Phil Harvey)
1 | exiftool-13.25_64>exiftool image1.png |
可以发现如下三个 GPS 位置
1 | 42 deg 51' 16.74" N, 13 deg 28' 36.58" E |
还有如下三条注释
1 | I'll use a TSAR Bomba here, but not the already tested one, the one that was only designed and its power is 100MT |
这里要用到 NUKEMAP by Alex Wellerstein,它用于在线模拟核弹核武器爆炸
输入分别在给定的三个位置 “投放” 注释中指定的核弹就能看到三个圆的交点在 Gubbio
1 | pascalCTF{gubbio} |
Reverse
X-Ray
Challenge
X-Ray
AlBovo
I’ve recently written my first license checker, maybe Steam will buy it…
Flag format:
pascalCTF{secret_signature}
Solution
先用 IDA 打开,发现这里有一个 if 分支
如果满足了这个条件就返回正确
接着看一下这个函数
这个函数将输入字符串与一个预定义的 key
进行异或操作,并将结果与另一个预定义的 encrypted
数组进行比较来验证签名
如果想要拿到 flag 就要让它们相等,那么接下来就看一下 key
和 encrypted
数组
明显 key
就是 *7^tVr4FZ#7S4RFNd2
, encrypted
数组是 78 52 08 47 24 47 07 19 6B 50 68 67 43 61 35 7E 09 01 00
接下来写一个 Python 脚本来解密这个 XOR 加密过程就能拿到 flag 了
1 | key = b"*7^tVr4FZ#7S4RFNd2" |
程序输出 ReV3r53_1s_4w3s0m3*
1 | pascalCTF{ReV3r53_1s_4w3s0m3*} |
Web
Static Fl@g
Challenge
Static Fl@g
AlBovo
A friend of mine created a nice frontend, he said we didn’t need a backend to check the flag…
Solution
题目说了只有前端没有后端,那直接翻源代码就行
1 | cGFzY2FsQ1RGe1MwX3kwdV9jNG5fVVMzXzFuc3BlY3RfM2wzbTNudF90MF9jaDM0dF9odWg/fQ== |
拿到的这个字符串 base64 解码一下就行
1 | pascalCTF{S0_y0u_c4n_US3_1nspect_3l3m3nt_t0_ch34t_huh?} |
Biscotto
Challenge
Biscotto
Ale
Elia accidentally locked himself out of his admin panel can you help him to get his access back?
Solution
先在附件找找 flag 是存放在哪里的
发现是环境变量里的 FLAG
,然后接着找 FLAG
发现了这段代码
它直接检查用户的 cookie 是否等于 admin
,如果是就会返回 flag
于是来到这个网站这里随便输入账号密码登录
登录之后直接把 cookie 里面 user
的值改为 admin
然后在 /me
这个页面刷新一下就能看到 flag 了
1 | pascalCTF{d0n7_f0rg3t_th3_ch0col4t3} |
Euro 2024
Challenge
Euro 2024
Ale
It is a widely known fact that elia is a diehard fan of football. For this reason he built a website to display the group stats of the EURO 2024 tournament but it seems like he left a secret somewhere.
Solution
还是先找 flag 放在哪,发现在环境变量的 FLAG
然后接着找 FLAG
可以发现这里通过环境变量 env.FLAG
将 flag 插入到 FLAG
表中
涉及到 SQL 的操作于是首先考虑 SQL 注入攻击
来到网页发现了这个查询的接口 https://euro2024.challs.pascalctf.it/api/group-stats
,请求方式是 POST,负载是 group=A
,响应如图
那么就可以写一个脚本调用这个接口尝试发起 SQL 注入攻击
1 | import requests |
1 | {'data': [{'group_id': 'A', 'team_name': 'Germany', 'ranking': 1, 'points': 7, 'wins': 2, 'draws': 1, 'losses': 0, 'goal_difference': 6}, {'group_id': 'pascalCTF{fl4g_is_in_7h3_eyes_of_the_beh0lder}', 'team_name': None, 'ranking': None, 'points': None, 'wins': None, 'draws': None, 'losses': None, 'goal_difference': None}, {'group_id': 'A', 'team_name': 'Switzerland', 'ranking': 2, 'points': 5, 'wins': 1, 'draws': 2, 'losses': 0, 'goal_difference': 2}, {'group_id': 'A', 'team_name': 'Scotland', 'ranking': 4, 'points': 1, 'wins': 0, 'draws': 1, 'losses': 2, 'goal_difference': -5}, {'group_id': 'A', 'team_name': 'Hungary', 'ranking': 3, 'points': 3, 'wins': 1, 'draws': 0, 'losses': 2, 'goal_difference': -3}]} |
成功拿到 flag
1 | pascalCTF{fl4g_is_in_7h3_eyes_of_the_beh0lder} |
Crypto
Romañs Empyre
Challenge
Romañs Empyre
AlBovo
My friend Elia forgot how to write, can you help him recover his flag??
1 | # romans_empire.py |
1 | TEWGEP6a9rlPkltilGXlukWXxAAxkRGViTXihRuikkos |
Solution
这题考的是凯撒密码
题目的 romanize
函数先生成一个随机的密钥 key = random.randint(1, len(alphabet) - 1)
,这个密钥决定了字母表中每个字符要移动的位数。对于 flag 中的每个字符,找到它在 alphabet
中的位置,然后加上密钥 key
,最后对 alphabet
的长度取模,得到加密后的字符。
由于密钥 key
是随机生成的,并且范围在 1
到 len(alphabet) - 1
之间,我们可以尝试所有可能的密钥值。对于每个可能的密钥,将加密后的字符串中的每个字符反向移动 key
位,得到可能的原始字符串。通过检查解密后的字符串是否以 pascalCTF{
开头并以 }
结尾来确定正确的密钥。
1 | import string |
1 | pascalCTF{4l34_14ct4-3st/$$/3ncr1pt10n-1337} |
barinrot
Brainrot Quiz
Paolo
Solve the quiz to get the italianest flag!
一点都没看懂,随便乱点就过了(?
1 | pascalCTF{1t4l14n_br41nr0t_1s_th3_b3st} |