LaTeX in Philes
Add TeX formulas to a phile with one frontmatter flag. The examples below show the source first, followed by its rendered result. 1. Enable…
Security research, reverse engineering, exploitation notes, and CTF write-ups.
https://cubeyond.net/ · github · steam
技术 #UPS #Pwn #CVE #Security #CTF #program #system #网络安全
Add TeX formulas to a phile with one frontmatter flag. The examples below show the source first, followed by its rendered result. 1. Enable…
#[y|-= Introuction] Prompt Injection is basically an attack method of utilitize the vulnerability of LLMs to deceive them performing uninten…
#[K|─── ]#[Y|Before we start] #[K|───────────────────────────────────────────────────────────] A hex constant in a write-up. A signed compar…
/----------------------------------------------------------------------------\ | ENTROPIC / ANSI INK | | portable ANSI color grammar for pla…
CONTENTS 1.0 Summary ............................................................... 2.0 Starting from the vendor ZIP ......................…
CVE-2017-9048 Description CVE: Compile Download Build 由于这个漏洞发生在 valid.c 的 xmlSnprintfElementContent 中,所以我们可以禁用一些无关的东西来提高 fuzzing 效率。 每次耗时最长的…
CVE-2016-9297 Description CVE: Compile Download 虽然 Mitre 的 description 写是 4.0.6 版本的漏洞,但是 chall 的 description 说 4.0.4,那就用 4.0.4 吧。 Build make…
CVE-2017-13028 Description CVE: Compile Download 阅读 README 我们可知,要编译 TCPdump 需要先编译 libpcap 。由于 TCPdump-4.9.2 的最后一次提交是九年前的,因此对应的最匹配的 libpcap 应…
Target CVEs Description CVE: CVE: Compile Download Build 这里由于我在 make 的时候有关生成文档的地方报错了,所以我手动将文档部分 patch 掉: 由于 libexif 只是一个库,所以我们要 fuzz 它需要自己找个…
CVE-2019-13288 Description CVE: Compile Download 这里选择的是 Xpdf Source Code - xpdf 3.02,而不是 4.01.01。 Build 先用 LTO mode 插下桩: 考虑到插桩后的代码影响调试,所以我们再…
Prologue 次日,群名从 Pwn Squad 变成了 Lost Squad。 我们不知道这是否是更好的选择,但我想,我们绝不差尝试的勇气。 :::note 由于是直接上手用 fuzzer,边做边学,所以肯定会漏掉很多重要的概念,算是比较冒险的学习方法了。不过没事,后面慢慢总…
Start Information - Category: Pwn Description Don't know how to start? Check GEF 101 - Solving pwnable.tw/start by @\hugsy Write-up 熟悉又陌生?没错…
Examples 下面给出一些我在学习过程中写的 demo,就不详细说明作用了,只贴一下代码(怕自己弄丢了 用到的 axium 是我自己写的内核 / 侧信道框架,点点 star 支持一下谢谢 \:P GitHub: 对于侧信道,还提供了缓存噪声分析的 dashboard xD 每…
简介 Intel Control-flow Enforcement Technology (CET) 由 Shadow stack (SHSTK) 和 Indirect branch tracking (IBT) 两部分组成,它们分别实现了不同的防护: The kernel mu…
Awesome Router Information - Category: IoT Description Trust me, if this challenge solved in the inteneded way, there is a lot of fun ; ) Wr…
Challenge Collections GitHub: You can download the challenges from my repo above. stack/level-0 Information - Category: Pwn Description None…
前言 我宣布,源神是真神,带我学 pwn 带我占( 诸如术数一类,其实很早就想学了,但是苦于没时间,没资源,反正就是自己不知道怎么学。但是现在有高手带,那还用说,赶紧跟着学啊!哈哈哈哈。 序论 命理与天命 命理是唐朝李虚中所提出的,通过阴阳五行、甲子纳音、生克制化等理论,预测一个…
工欲善其事,必先利其器 Speedrun 异架构汇编 直接看我笔记就好了,虽然不是很详细,后面有时间的话我会再多写点的 /画大饼,很大很大的饼(bushi 异架构环境搭建 由于我使用的是 Arch Linux,所以这里的搭建步骤都按照 Arch 的用法来写,不过实际上其它发行版的…
ARM Data processing Data Moving Similar to amd64, the mov instruction can be used. However, literal values must be prefixed with the symbol!…
明天是快乐星期五,好耶,又不用上课了~ 总览 | 在不确定中持续推进 路边的银杏叶已经落得差不多了。秋天走得很安静,却也没能逃过我的眼睛。老实说,现在并没有什么写作的热情和积极性,不过也无所谓,先写着再说。没有心情也是一种心情,冬天果然是忧郁的季节。此刻,不兴奋,也谈不上什么低落…
你终于踏入了 Ring 0,那不是权力的开始,而是谦卑的第一步。 前言 本来预计 12.1 看完 kernel 的几个讲义,2 号直接开始做题,然后我也不知道我在干什么,讲义看了十几天才看完,一直到 19 号才开始做第一题…… 期间花了几天时间写了一个全平台通用的自动化创建 ke…
Verifmt Information - Category: Pwn Description Verifmt is a format string converter with a powerful verifier. Write-up 题目给了源码,还是很方便的: 发现只是对…
前言 盲猜这章是 FSOP 综合利用,但是看到第一题就傻眼了。预知后事如何,请看 wp( Level 1 Information - Category: Pwn Description Create and use arbitrary read primitives to rea…
前言 所以,这是我入门 IoT 复现的第一个漏洞 \:D 看到 Arch Linux 神(邪)教被孤立还是很难过的……最后迫不得已,还是搭建了 AttifyOS 虚拟机,老老实实用它仿真,不过分析和写 exp 这种事情还是在宿主机进行,其实感觉还好,整个流程并没有让我觉得有多麻烦…
前言 Finally,花了五个月差不多把 pwn 学完了,至于剩下的内核什么的后期就当兴趣学了,应该不会变成我的主要研究方向,所以等学完这两章 FSOP 的内容我就去搞 IoT,也能想象明年开始将全力以赴打比赛,暗无天日的坐牢( 总之希望竞赛时期不要太长,最好能够一年退役,我可不…
babystack Information - Category: Pwn - Points: 500 Description 拿到属于你的 shell 吧 Get your own shell Write-up ? Exploit Flag :spoiler[flag{W528…
flag-market Information - Category: Pwn - Points: 500 Description flag 市场,童叟无欺 Write-up 第一次打国赛,没想到能遇上一道我能做的题……呜呜呜太感动了( 逆向出来的代码就这么点: 初看不难发现,s…
前言 冲冲冲,尽快拿下这一章然后学 FSOP,同时空下来学点 IoT,提前进军 realworld 。 Level 1.0 Information - Category: Pwn Description Leverage consolidation to obtain the f…
stack Information - Category: Pwn - Points: 500 Description 听说你很喜欢栈溢出? Write-up 虽然逻辑很简单,但是还是先让 MCP 先分析一下逻辑,重命名一下变量名。得到如下程序: 上面这个 init 函数里的 s…
zip++ Information - Category: Pwn - Points: 500 Description why isn't my compressor compressing ?! Write-up 问 AI,得知 compress 函数实现了一个 RLE (Ru…
House of Spirit Applicable Range - latest Principles 人生中的第一个「house」,当然是从 Spirit 开始~ 下面直接拿 how2heap 的 example code 来学习了,选择的是 glibc2.35/houseo…
前言 前几天打了 SunshineCTF 2025,其中有道 MOVfuscated 的 Pwn 题感觉挺有意思,虽然最后也没做出来,但是知道了一个大致的学习方向,或许可以用符号执行来解决这道题。 Anyway,先开个题,至于什么时候写,hmm,我还有好多 heap 没学泪,所以…
i95 这个方向都是栈 Pwn,很简单,直接 AK 了。 Miami Information - Category: Pwn - Points: 100 Description Dexter is the prime suspect of being the Bay Harbor…
ret2gets 是用于在 glibc >= 2.34 没有常用 gadgets,控制不了任何参数的情况下,通过调用 gets,配合 printf / puts 等输出函数实现 ld 地址泄漏进而为深入构造 ROP Chain 做准备的 trick 。 :::tip 此 tric…
前言 今天刚复现完 2024 年羊城杯的 logger,一道简单的涉及 C++ 异常处理机制的缓冲区溢出题,感觉还挺有意思,了解了一下发现有一种专门针对于异常处理而发展出来的 ROP 手法,叫做 CHOP (Catch Handler Oriented Programming),…
先挑几个简单的复现一下,因为堆都没怎么学过,就先不复现了,等以后学明白了再去研究。 pstack Information - Category: Pwn - Points: Unknown Description Unknown Write-up 看上去就是签到题,0x10 字节…
打个酱油辅助一下……难以想象整个比赛就这一道 Pwn,也是体验了一波 AK 完睡觉的感觉…… Pwn Description - Category: Pwn Write-ups 保护全开,不过就一个很小的 main 函数: 一开始想的是堆溢出,后来调试了一下发现是不可能的(当时还…
Time Information - Category: Pwn - Points: Unknown Description Unknown Write-up 当时直接被别的 pwn 题吓跑了,感觉一道也做不出来……今天来复现一下这道 race condition 的题。没看 w…
cascade Information - Category: Pwn - Difficulty: Medium - Points: 292 Description just a buffer overflow, right? Write-up 64 字节的缓冲区,512 字节的…
Little ROP Information - Category: Pwn - Points: 362 Description No PIE, no canary. Perfect setup for ROP. Show me what you can do! Write-up…
Cakeshop Information - Category: AWDP Pwn - Points: Unknown Description Unknown Write-up Kong 师傅分享的题,本来只是抱着试一试的心态,看看能不能做出来的,结果没想到还真做出来了……决赛题…
Discord Information - Category: Misc - Points: 10 Description Join the Discord for our super secret flag! Write-up 本来以为是和机器人聊天,发现这机器人还挺难斥候,怀…
前言 悲,这篇博客最早是在 2025-01-25 开始写的,那会儿刚准备开始学堆,结果却因为各种各样的原因(主要是未来路线规划和刚接触堆面对各种陌生的新知识感觉十分害怕,也确实不懂,觉得很难),就去干别的了。没想到一直到 25 年 9 月才重新开始写这篇博客……既然如此,那就干脆…
Fotispy 1 Information - Category: Pwn - Points: 500 Description Spotify with a GUI? A true hacker only needs the terminal. Note: Despite the…
前言 暑假也快结束了,整个假期都被各种事情困扰着,心态一崩再崩,糟糕极了,差点就放弃了一切……不过现在已经好很多,重新打起精神来了。想着在余下的十多天里把 GLIBC 堆分配器的源码读完吧,反正迟早要读的,先把各种机制,流程全部理清楚了,打好基础,开学后再去学习各种攻击手法也不迟…
前言 万事开头难……准备开始学习堆利用了,不过发现想要在 Arch Linux 上获得预期的源码级调试体验有点有点费劲,没有像 ubuntu 那样的 libc6-dbg 软件包,试过配置 debuginfod 服务,也没有解决问题(很爆炸,等我把这个项目撸完后才发现,原来用 ub…
r0bob1rd Difficulty - EASY Description I am developing a brand new game with robotic birds. Would you like to test my progress so far? Write…
前言 炸炸炸,不想说话! Pragma Once and Header Guards Pragma Once If the same header file gets included more than once, you can end up with some nasty…
前言 不开心,不想说话……让我们直接进入这段有趣的学习之旅吧,试试两个月,甚至更短的时间内解决掉这门又臭又长的课程。 Bits, Bytes, and Integers Representation information as bits Everything is bits E…
rip Information - Category: Pwn - Points: 1 Write-up 丢给 IDA 老婆分析,看到有一个危险函数 gets,还有一个 fun 会返回 system("/bin/sh"),保护全关。直接打,注意栈对齐。 Exploit warmu…