> 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/hacking-tools/linux.md).

# Linux 工具

Linux Tools 是用于 Linux 本地枚举和权限提升支持的主目录。目标是将工具参考与利用笔记分开：工具放在这里，而详细的利用流程保留在 Linux 权限提升页面中。

使用本节选择合适的辅助工具，然后在将任何结果视为提权路径之前，手动验证每一项发现。

## Linux 工作流

1. 确认当前用户、组、主机名、内核、发行版、shell 质量以及可用二进制文件。
2. 使用 LinPEAS、LinEnum 或 Smart Enumeration 进行广泛枚举，以收集高信号的线索。
3. 手动验证 sudo 规则、SUID 二进制文件、能力、可写路径、cron 任务、服务和环境变量。
4. 使用 GTFOBins 查看已确认的二进制滥用模式；Linux Exploit Suggester 仅作为内核 CVE 研究的起点。
5. 保存准确的命令、工具版本、输出片段以及影响证明，以便报告和复测。

## 工具类别

* **自动化枚举：** LinPEAS、LinEnum 和 Smart Enumeration，用于广泛的本地发现。
* **提权原语验证：** GTFOBins，用于 sudo、SUID、能力、文件读取、文件写入和 shell 逃逸。
* **内核研究：** Linux Exploit Suggester，用于将内核和发行版版本映射到可能的 CVE。
* **手动确认：** sudo 审查、SUID 检查、可写文件、cron 监控、能力、服务审查和环境检查。

## 推荐的 Linux 工具

<table data-card-size="large" data-column-title-hidden data-view="cards" data-full-width="false" data-search="false"><thead><tr><th>名称</th><th>描述</th><th>官方链接</th><th data-hidden data-card-cover data-type="image">封面图片</th></tr></thead><tbody><tr><td><strong>LinPEAS</strong></td><td>用于常见错误配置、暴露的机密信息、服务、权限以及提权线索的自动化 Linux 枚举。</td><td><a href="https://github.com/peass-ng/PEASS-ng/releases">https://github.com/peass-ng/PEASS-ng/releases</a></td><td><a href="/files/971005da3cbf79b0291bec0713c7751ed08d2d1b">/files/971005da3cbf79b0291bec0713c7751ed08d2d1b</a></td></tr><tr><td><strong>LinEnum</strong></td><td>用于收集 Linux 权限提升指示器的本地枚举脚本。</td><td><a href="https://github.com/rebootuser/LinEnum">https://github.com/rebootuser/LinEnum</a></td><td><a href="/files/2bb1fd47c55c593036f7ec88cf50c47b2efcd137">/files/2bb1fd47c55c593036f7ec88cf50c47b2efcd137</a></td></tr><tr><td><strong>Smart Enumeration</strong></td><td>结构化的 Linux 枚举工具，会优先显示发现结果并减少噪声输出。</td><td><a href="https://github.com/diego-treitos/linux-smart-enumeration">https://github.com/diego-treitos/linux-smart-enumeration</a></td><td><a href="/files/acb4da3dbc58158da1ea8b54da5a9808bed1a03e">/files/acb4da3dbc58158da1ea8b54da5a9808bed1a03e</a></td></tr><tr><td><strong>GTFOBins</strong></td><td>在 sudo、SUID、能力和受限 shell 等特权上下文中滥用 Unix 二进制文件的参考。</td><td><a href="https://gtfobins.github.io/">https://gtfobins.github.io/</a></td><td><a href="/files/2cdee5ef683fc09fa8b20fd67d12a3effc19c417">/files/2cdee5ef683fc09fa8b20fd67d12a3effc19c417</a></td></tr><tr><td><strong>Linux Exploit Suggester</strong></td><td>基于内核、发行版和已知 CVE 条件的本地漏洞发现辅助工具。</td><td><a href="/pages/59ff60d61603a299e351385996cac2adbfdf7759">linux-exploit-suggester</a></td><td></td></tr></tbody></table>

### 相关笔记

* [Linux Exploit Suggester](/zh/hacking-tools/linux/linux-exploit-suggester.md) 保留用于内核漏洞建议的专用命令工作流。
* [Linux 权限提升](/zh/privesc.md) 包含利用方法、sudo 路径、SUID 路径、能力、cron 任务、可写文件、Docker 逃逸和内核利用笔记。
* [黑客工具](/zh/hacking-tools.md) 保留用于 Web、网络、凭据、OSINT、Windows 和研究工具的更广泛跨平台目录。


---

# 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/hacking-tools/linux.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.
