> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/writeups-ctf.md).

# CTF 解题记录

专注于实战渗透测试流程的 CTF 靶机 writeup：侦察、枚举、利用、权限提升、横向移动，以及后渗透笔记。

## Writeup 工作流程

1. 从侦察开始：Nmap、服务横幅、Web 模糊测试、子域名和暴露文件。
2. 基于最可靠的发现构建利用路径：凭据、CVE、上传、LFI、命令注入或服务滥用。
3. 稳定立足点，并记录有用的文件、用户、凭据、哈希值和内部服务。
4. 通过 sudo、SUID、内核、Windows 服务、令牌、Active Directory 或错误配置来提升权限。
5. 保留命令、载荷、截图和证明步骤，以便日后复查并可复现。

## 平台

<table data-view="cards" data-full-width="false" data-search="false"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3><i class="fa-cube" style="color:$primary;">:cube:</i></h3></td><td><h4>HackTheBox 靶机</h4></td><td>按 Linux 和 Windows 难度整理的 HackTheBox 靶机 writeup，涵盖枚举、初始立足点、权限提升、Active Directory、Web 利用和服务滥用。</td><td><a href="/pages/074d1c7dde35468a6e480d95fd576bbb3e0a06c9">/pages/074d1c7dde35468a6e480d95fd576bbb3e0a06c9</a></td></tr><tr><td><h3><i class="fa-square" style="color:$primary;">:square:</i></h3></td><td><h4>VulnHub 靶机</h4></td><td>针对本地易受攻击虚拟机的 VulnHub 靶机 writeup，涵盖 Web 枚举、服务利用、凭据、权限提升和 root 权限获取。</td><td><a href="/pages/d4f83cbf8ed31890888f66d92707979c883347ce">/pages/d4f83cbf8ed31890888f66d92707979c883347ce</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/writeups-ctf.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
