# CTF 夺旗赛

**URL:** https://forum.90sec.com/c/ctf/19.md

[最新](https://forum.90sec.com/latest.md) · [类别](https://forum.90sec.com/categories.md) · [标签](https://forum.90sec.com/tags.md)

---

## [关于“CTF 夺旗赛”分类](https://forum.90sec.com/t/topic/308)

<div class="topic-metadata">

**Author:** [@panda](https://forum.90sec.com/u/panda)\
**回复:** 0

</div>

用于与 CTF 赛事相关的赛事推荐、writeup 公布以及问题讨论交流等

---

## [【SWPUCTF2019】easyRE](https://forum.90sec.com/t/topic/2044)

<div class="topic-metadata">

**Author:** [@3179478769](https://forum.90sec.com/u/3179478769)\
**回复:** 0\
**最近更新：:** [2022 年3 月 1 日 02:04 UTC](https://forum.90sec.com/t/topic/2044 "2022-03-01T02:04:03Z")

</div>

\[SWPU2019\]easyRE main函数： int \_\_cdecl main(int argc, const char \*\*argv, const char \*\*envp) { \_DWORD v4\[28\]; // \[esp-6C…

---

## [CTF逆向](https://forum.90sec.com/t/topic/1642)

<div class="topic-metadata">

**Author:** [@Wker](https://forum.90sec.com/u/Wker)\
**回复:** 0\
**最近更新：:** [2021 年4 月 11 日 11:08 UTC](https://forum.90sec.com/t/topic/1642 "2021-04-11T11:08:08Z")

</div>

CTF入门题 昨天下午在宿舍没有太多事做，就在耍手机，有个朋友说他参加了个CTF比赛，但是逆向的题目不太会，想找我帮忙看看，我正想着反正也没啥事，而且他说参加的是MRCTF，一个青少年的CTF比赛，这类的题目应该是十分钟一个的，并且他给我发…

---

## [Hackergame部分题解分析](https://forum.90sec.com/t/topic/1535)

<div class="topic-metadata">

**Author:** [@thunder\_sword](https://forum.90sec.com/u/thunder_sword)\
**回复:** 7\
**最近更新：:** [2021 年1 月 18 日 07:58 UTC](https://forum.90sec.com/t/topic/1535 "2021-01-18T07:58:11Z")

</div>

Hackergame 2020比赛解题分析 1 前言 Hackergame 2020，中文名是：中国科学技术大学第七届信息安全大赛。 题目很多而且涉及方面极广，在这次比赛中学到了很多东西，虽然大部分题都没有做出来，但是锻炼了自己的同时涉及的方面也更宽广了，最后成绩不怎么样，但是好在锻炼了自己： \[clip\_image002\] 2 正文 2.1 签到 （1）题目分析： 要求给出整数倍的数值提交，但是页面上的滑条很灵敏，很难正好弄到整数。 （2）解题步骤： 直接点击提交，可以在url栏看到是以get方式提交的number变量值，直接修成1再次提交即可： \[clip\_image004\] 2…

---

## [RWCTF Mop 0day Writeup](https://forum.90sec.com/t/topic/1520)

<div class="topic-metadata">

**Author:** [@maplgebra](https://forum.90sec.com/u/maplgebra)\
**回复:** 1\
**最近更新：:** [2021 年1 月 13 日 06:46 UTC](https://forum.90sec.com/t/topic/1520 "2021-01-13T06:46:55Z")

</div>

RWCTF Mop 0day Writeup 在刚刚结束的RW上，今年又出现了一道2019年类似的master of php，刚开始我还不知道，在看完orange的议题之后，主持人讲解的时候我才知道今年又有一道mop，orange的议题也是带来的关于php的web和binary结合，似乎对web选手们越来越不友好了... 回到正题，2021的mop是一道0day，但是很多人应该拿非预期的spldoublelink秒了，我也不例外，今天不讲它，这里我只想分享一下我是如何利用作者预期的0day. 作者给出的0day还是比较有趣的，绕过了php里面type hint，从而导致的type conf…

---

## [一道入门mobile题writeup](https://forum.90sec.com/t/topic/1389)

<div class="topic-metadata">

**Author:** [@V1nc3nt](https://forum.90sec.com/u/V1nc3nt)\
**回复:** 0\
**最近更新：:** [2020 年11 月 2 日 15:27 UTC](https://forum.90sec.com/t/topic/1389 "2020-11-02T15:27:17Z")

</div>

前言 上周末前公司内部组织了一年一度的CTF比赛。作为一个mobile小白，花了一天时间才做出这道题，踩了很多坑的同时也收获了很多，特此记录一下。 题目描述 根据弹出的提示，并得到一串字符。 附件中是一个apk，打开后只有一个界面。 …

---

## [Roarctf 2019 easy\_pwn](https://forum.90sec.com/t/topic/1166)

<div class="topic-metadata">

**Author:** [@CGN-115](https://forum.90sec.com/u/CGN-115)\
**回复:** 0\
**最近更新：:** [2020 年6 月 27 日 12:57 UTC](https://forum.90sec.com/t/topic/1166 "2020-06-27T12:57:46Z")

</div>

一个笔记系统，先添加然后才能编辑，在编辑的时候，如果输入的 size 比之前创建的时候大 10 的话，就会造成 off by one 先放一下 exp #coding:utf-8 from pwn import \* from LibcSearcher import \* p = process('./pwn') #p = remote('node3.buuoj.cn',26046) def cmd(choice): p.sendlineafter('choice: ',str(choice)) def create(size): cmd(1) p.sendlineafter(…

---

## [PWN入门（Off By One）](https://forum.90sec.com/t/topic/1123)

<div class="topic-metadata">

**Author:** [@CGN-115](https://forum.90sec.com/u/CGN-115)\
**回复:** 0\
**最近更新：:** [2020 年6 月 14 日 00:52 UTC](https://forum.90sec.com/t/topic/1123 "2020-06-14T00:52:20Z")

</div>

只溢出一个字节，比如定义的数组是 a\[4\]，在操作的时候却操作 a\[4\]，实际上数组最大是到 a\[3\] 的 利用思路 溢出字节为可控制任意字节：通过修改大小造成块结构之间出现重叠，从而泄露其他块数据，或是覆盖其他块数据。 溢出字节为 …

---

## [2017\_0ctf\_babyheap](https://forum.90sec.com/t/topic/1110)

<div class="topic-metadata">

**Author:** [@CGN-115](https://forum.90sec.com/u/CGN-115)\
**回复:** 0\
**最近更新：:** [2020 年6 月 7 日 07:08 UTC](https://forum.90sec.com/t/topic/1110 "2020-06-07T07:08:46Z")

</div>

小菜鸡做的第一道堆题 保护全开，看看有些什么功能 申请、填充、释放、查看、退出 在填充（fill）的时候，还要求输入你要填充多少个字节，但是可以输入比申请的大的数 大体思路 首先泄漏 libc 的地址，当一个 chunk …

---

## [ROPEmporium writeup](https://forum.90sec.com/t/topic/1074)

<div class="topic-metadata">

**Author:** [@CGN-115](https://forum.90sec.com/u/CGN-115)\
**回复:** 0\
**最近更新：:** [2020 年5 月 29 日 02:38 UTC](https://forum.90sec.com/t/topic/1074 "2020-05-29T02:38:44Z")

</div>

ROPEmporium 是一个练习 ROP（返回导向编程） 技巧的网站 上面 32 位和 64 位的都有，在这里学到了挺多的知识和技巧 ret2win 32位 运行看看 计算一下栈的大小，得到 44 在 ret2win …

---

## [网鼎杯第二场“恶龙”解题小记](https://forum.90sec.com/t/topic/1064)

<div class="topic-metadata">

**Author:** [@JackyTsuuuy](https://forum.90sec.com/u/JackyTsuuuy)\
**回复:** 2\
**最近更新：:** [2020 年5 月 26 日 05:23 UTC](https://forum.90sec.com/t/topic/1064 "2020-05-26T05:23:45Z")

</div>

感觉是有点意外做出来的，估计也不是官方的预期解，就拿出来分享分享吧。也算是自己记录一下。 0x01 初步的把玩 \[1\] 首先拿到题，看样子是个ELF文件，查了一下发现确实为64位的ELF文件。这里就还是使用IDA配合linux来远程调试。 \[2\] 打开先瞅瞅是干啥的。发现是个小游戏。歌词大意看上去就是说只有打败boss才可以找到flag。选项1貌似可以刷小怪获得奖励，选项3貌似可以通过商店升级。从题目的提示也看出来大概也确实是这样。 \[3\] 大概有了一个初步的熟悉。就尝试再看看分析下反编译的代码。打开发现ida分析出大概的全局流程如下,整体貌似流程并不复杂： \[4\] 可以看到在…

---

## [网鼎杯（玄武）web2 WriteUp](https://forum.90sec.com/t/topic/1052)

<div class="topic-metadata">

**Author:** [@flystart](https://forum.90sec.com/u/flystart)\
**回复:** 3\
**最近更新：:** [2020 年5 月 27 日 03:33 UTC](https://forum.90sec.com/t/topic/1052 "2020-05-27T03:33:47Z")

</div>

正文： ​ 现在比赛都是pwn的天下，可惜我们团队没有pwn选手，本次比赛就做了三道题，进不了线下赛。说说第二道web题吧，常见的登录和注册功能（出题人可能脑回路有异常），注册一个普通用户登录，页面会显示用户名猜测可能是二次注入，试了半天无…

---

## [记一次0403-360众测考核WP](https://forum.90sec.com/t/topic/935)

<div class="topic-metadata">

**Author:** [@nanfang](https://forum.90sec.com/u/nanfang)\
**回复:** 0\
**最近更新：:** [2020 年4 月 3 日 14:50 UTC](https://forum.90sec.com/t/topic/935 "2020-04-03T14:50:51Z")

</div>

1，微信 User-Agent头伪造 User-Agent: Mozilla/5.0 (iPhone; CPU iPhoneOS 8\_0 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like G…

---

## [复盘 SUCTF 2019 Reverse 精解](https://forum.90sec.com/t/topic/540)

<div class="topic-metadata">

**Author:** [@PureT](https://forum.90sec.com/u/PureT)\
**回复:** 0\
**最近更新：:** [2019 年10 月 17 日 16:18 UTC](https://forum.90sec.com/t/topic/540 "2019-10-17T16:18:37Z")

</div>

复盘SUCTF 2019 Writeup Reverse SignIn exeinfope 载入查壳。一个64位的ELF程序，无壳。 NOT Win EXE - .o - ELF executable \[ 64bit obj. Sha…

---

## [分享一道WEB题及writeup](https://forum.90sec.com/t/topic/506)

<div class="topic-metadata">

**Author:** [@xiaowei](https://forum.90sec.com/u/xiaowei)\
**回复:** 0\
**最近更新：:** [2019 年10 月 8 日 02:31 UTC](https://forum.90sec.com/t/topic/506 "2019-10-08T02:31:51Z")

</div>

根据题目提示 访问站点发现为后台登陆界面，发现用户名输入会返回值怀疑可以进行注入 发现此过还滤了or 构造过滤语句 \[1\] 一般的登陆表单的字段名按照经验来讲一般很段，尝试用union联合查询语句进行猜解字段 发现此页面有有过滤规则，还有点击提交是几秒后会刷新页面 发现过滤了空格，union，select等，构造过滤语句 \[2\] 因为页面提交会刷新页面所以burp来进行注入 通过多次尝试判断为字段数为3，并且2的位置是显位 \[3\] 进行爆库 得到库名为xiaowei \[4\] 爆表名 admin 发现or给过滤了 重新构造语句绕过过滤规则 \[5\] \[6\] …

---

## [【迎国庆】jsfuck编码简单解决方案](https://forum.90sec.com/t/topic/499)

<div class="topic-metadata">

**Author:** [@hundan](https://forum.90sec.com/u/hundan)\
**回复:** 0\
**最近更新：:** [2019 年10 月 7 日 15:34 UTC](https://forum.90sec.com/t/topic/499 "2019-10-07T15:34:24Z")

</div>

0x00 写在前面 最近比较忙，本来续爷给了我一个洞，让我发来着，准备复现的时候，发现找不到对应版本，问续爷也没回我，不知道是不是在睡觉，想了想从电脑上搜了搜，找了个相对完成度比较高而且不那么水的文章，感谢大家的阅读。 文章主要是本地使用node的解法，代码量大的时候用chrome调试台，电脑受不了，很久以前遇到过一道用jsfuck加密的题目，编码后代码量很大，打开都卡。 0x01 关于jsfuck 项目地址：https://github.com/aemkei/jsfuck 其实jsfuck本身编码起来，有三种模式 第一种是把输入作为字符串进行编码，这样运行完了会return一个字符串 …

---

## [2019“黄鹤杯”全国总决赛 WEB Write Up](https://forum.90sec.com/t/topic/421)

<div class="topic-metadata">

**Author:** [@yzddmr6](https://forum.90sec.com/u/yzddmr6)\
**回复:** 2\
**最近更新：:** [2019 年9 月 20 日 03:36 UTC](https://forum.90sec.com/t/topic/421 "2019-09-20T03:36:12Z")

</div>

前言 三天赶了两场比赛 黄鹤杯体验极佳 ，比某500空间好到不知哪里去了 web就两个题，一开始就打穿了 于是本菜鸡就开始了划水运动hhhhh web1 web1是个thinkphp5 扫一下目录有个www.zip 打开后看…

---

## [某CTF交流群入群WEB题](https://forum.90sec.com/t/topic/397)

<div class="topic-metadata">

**Author:** [@M4p1e](https://forum.90sec.com/u/M4p1e)\
**回复:** 2\
**最近更新：:** [2019 年9 月 12 日 08:11 UTC](https://forum.90sec.com/t/topic/397 "2019-09-12T08:11:09Z")

</div>

CTF交流群——WEB 源码分析 \<?php highlight\_file(\_\_FILE\_\_); function check\_inner\_ip($url) { $match\_result=preg\_match('/^(h…

---

## [一道虚拟机](https://forum.90sec.com/t/topic/382)

<div class="topic-metadata">

**Author:** [@maplgebra](https://forum.90sec.com/u/maplgebra)\
**回复:** 1\
**最近更新：:** [2019 年9 月 9 日 03:34 UTC](https://forum.90sec.com/t/topic/382 "2019-09-09T03:34:22Z")

</div>

周末。panda熊猫让扔过来一道，我到现在都不知道的是什么ctf题，他说是pwn中分数最高的，由于时间太短，没能做出来，太遗憾。这里把当时思路记录一下。 从题目名字来看ezarch，arch架构 ？3个功能，设置内存，下断点，运行。后知后觉原来是个虚拟机。当时主要是先入为主了，一段段的去看代码。主要还是太急了，根据我之前分析php内核的虚拟机的结构，这个地方其实是有套路的，分析虚拟机最主要的两个目标是： 虚拟机内部用来描述整个执行过程的指令集。 单个指令对应的解释过程。 先看设置内存的过程。仔细分析定义内存的结构应该是下面这样的 struct vm{ char \* …

---

## [2019 SUCTF WP](https://forum.90sec.com/t/topic/376)

<div class="topic-metadata">

**Author:** [@z3r0yu](https://forum.90sec.com/u/z3r0yu)\
**回复:** 2\
**最近更新：:** [2019 年9 月 6 日 04:30 UTC](https://forum.90sec.com/t/topic/376 "2019-09-06T04:30:24Z")

</div>

0x00 前言 又是很嗨的一场比赛。 PS: 补充了iCloudMusic的个人详细题解 0x01 CheckIn 题目描述 http://47.111.59.243:9021 题目解答 首先判断目标题目的容器环境，发现是ngin…

---

## [bypass \_IO\_vtable\_check 之写 fs:\[30\]](https://forum.90sec.com/t/topic/368)

<div class="topic-metadata">

**Author:** [@maplgebra](https://forum.90sec.com/u/maplgebra)\
**回复:** 3\
**最近更新：:** [2019 年9 月 2 日 01:15 UTC](https://forum.90sec.com/t/topic/368 "2019-09-02T01:15:44Z")

</div>

IO\_vtable\_check bypass 在看HCTF2018里面的一道叫babyprintf的题时候，本是一道很常规的题，解法也很多，但是我看出题师傅自己的解法的时候，把我难住了。他用了一种我一直忽略了的bypass IO\_vtable\_check的方法。也是非常少见的一种方法，我是第一次看见，但是我感觉理论上应该是最好的一种方法。下面看我的曲折经历。 void attribute\_hidden \_IO\_vtable\_check (void) { #ifdef SHARED /\* Honor the compatibility flag. \*/ void (\*flag) (v…

---

## [一起学pwn系列2---pwnable.xyz 9-16](https://forum.90sec.com/t/topic/335)

<div class="topic-metadata">

**Author:** [@xiaojunjie](https://forum.90sec.com/u/xiaojunjie)\
**回复:** 1\
**最近更新：:** [2019 年8 月 23 日 07:21 UTC](https://forum.90sec.com/t/topic/335 "2019-08-23T07:21:44Z")

</div>

嫌麻烦看pdf 一起学pwn系列2.pdf (1.2 MB) pwnable.xyz 9-16题题解 free spirit int \_\_cdecl main(int argc, const char \*\*argv, const c…

---

## [一起学pwn系列1---pwnable.xyz 1-8](https://forum.90sec.com/t/topic/334)

<div class="topic-metadata">

**Author:** [@xiaojunjie](https://forum.90sec.com/u/xiaojunjie)\
**回复:** 0\
**最近更新：:** [2019 年8 月 23 日 07:06 UTC](https://forum.90sec.com/t/topic/334 "2019-08-23T07:06:26Z")

</div>

pwnable.xyz 1-8题题解 sub 注意整数符号 misalignment 注意内存分布为小端序 welcome 注意malloc分配大小有限制，过大返回null，数组指针定位 add 数组偏移写地址 grownup …

---

## [SUCTF web 赛后复现总结](https://forum.90sec.com/t/topic/333)

<div class="topic-metadata">

**Author:** [@panda](https://forum.90sec.com/u/panda)\
**回复:** 0\
**最近更新：:** [2019 年8 月 23 日 02:32 UTC](https://forum.90sec.com/t/topic/333 "2019-08-23T02:32:43Z")

</div>

0x01 CheckIn 这题docker 报错不能复现（估计主办方提供的不是运行后的 docker 文件）,因此简单整理下思路。 这题是应该是仿Insomnihack 2019思路出的题。在这题里，符合以下情况均 failed： …

---

## [2019NISC CTF 部分 WriteUp](https://forum.90sec.com/t/topic/318)

<div class="topic-metadata">

**Author:** [@panda](https://forum.90sec.com/u/panda)\
**回复:** 1\
**最近更新：:** [2019 年8 月 19 日 07:34 UTC](https://forum.90sec.com/t/topic/318 "2019-08-19T07:34:00Z")

</div>

0x00 Game 操作内容： 查看源码发现存在可疑 JS 文件： 读取发现： 构造 POST 请求，参数 score=15 时，即可读出数据 0x01 who are you? 观察源文件： 猜测存在XML …

---

## [某工控 CTF 线上赛隐信道数据安全分析题解](https://forum.90sec.com/t/topic/261)

<div class="topic-metadata">

**Author:** [@panda](https://forum.90sec.com/u/panda)\
**回复:** 0\
**最近更新：:** [2019 年8 月 1 日 07:58 UTC](https://forum.90sec.com/t/topic/261 "2019-08-01T07:58:40Z")

</div>

0x01 赛题说明 \[%E5%9B%BE%E7%89%87%201\] 文件下载： question\_1564258711\_5-flag-woody.mp3.zip (7.7 MB) 0x02 曲折 题目很明显，就是一道 MP3的隐写题，按照常规思路，有三种思路： 直接右击txt打开，查找关键词 flag 查看该音频文件的波形图、频谱图，是否存在相关信息可以转化为摩斯电码 查看mp3 中是否含有隐藏文件，提取文件 第一种思路没报多大打算，果然没有： \[%E5%9B%BE%E7%89%87%202\] 第二个思路： 波形图： \[%E5%9B%BE%E7%89…

---

## [CTF中一些利用PS解决的杂项题（Misc）](https://forum.90sec.com/t/topic/257)

<div class="topic-metadata">

**Author:** [@90wiki](https://forum.90sec.com/u/90wiki)\
**回复:** 1\
**最近更新：:** [2019 年7 月 29 日 08:25 UTC](https://forum.90sec.com/t/topic/257 "2019-07-29T08:25:53Z")

</div>

本文作者：老锥 来源：90WiKi 0x01 对于一些图片隐写的题，大多玩家都是利用beyond compare，Stegsolve.jar这类工具来直接操作； 我这利用ps来玩一下吧，因为这些工具利用的原理在ps都能实现，甚至你会发现，有的题ps还会更省事更简单； 本帖纯属娱乐，比较有意思。 0x02 题目： 年薪100w,快到碗里来(Misc) 地址： http://121.42.149.60/rmb100w\_per\_year.html 是阿里云盾校园招聘的第一题，这道题不是隐写； \[image\] 过程 打开页面只有一个图片和一行字–“ 这个熊猫的颜色为什么这么奇怪？ …

---

## [一道MMS工控协议CTF题的WriteUp](https://forum.90sec.com/t/topic/207)

<div class="topic-metadata">

**Author:** [@panda](https://forum.90sec.com/u/panda)\
**回复:** 0\
**最近更新：:** [2019 年7 月 6 日 01:37 UTC](https://forum.90sec.com/t/topic/207 "2019-07-06T01:37:31Z")

</div>

0x01 赛题说明 赛题说明： 只能变电站通过 61850 规约进行监控层到间隔层的数据采集，请分析网络数据包，了解 MMS 规约，进一步发现数据中隐藏的 flag。 题目:question\_1531222544\_JYvF…

---

## [solveme.kr writeup](https://forum.90sec.com/t/topic/29)

<div class="topic-metadata">

**Author:** [@hundan](https://forum.90sec.com/u/hundan)\
**回复:** 0\
**最近更新：:** [2019 年2 月 28 日 12:43 UTC](https://forum.90sec.com/t/topic/29 "2019-02-28T12:43:27Z")

</div>

Warm up \<?php error\_reporting(0); require \_\_DIR\_\_.'/lib.php'; echo base64\_encode(hex2bin(strrev(bin2hex($f…
