strikoder/LinEnum-ng
GitHub: strikoder/LinEnum-ng
LinEnum-ng 是一款针对 OSCP 优化的 Linux 提权枚举脚本,自动化检测内核漏洞和配置错误以简化渗透测试流程。
Stars: 8 | Forks: 2
# ple, if I output "LinEnum-ng", it's not Chinese. I should translate the meaning. Perhaps "LinEnum-ng" is the name of a script, so in Chinese, it might be referred to as "LinEnum-ng 脚本" or something, but the heading is just "LinEnum-ng". Looking back at the example: "API Reference" -> "API 参考", which is a mix. So, for "LinEnum-ng", I think I should keep it as "LinEnum-ng" and not translate it further. But to have it in Chinese, I can output "LinEnum-ng" as is, but that might not be a translation. I need to decide.
:8080/linenum-ng.sh -O /tmp/linenum-ng.sh
chmod +x /tmp/linenum-ng.sh
/tmp/linenum-ng.sh
```
### CTF 小贴士 — 没有 HTTP 服务器?使用 Here Document
直接将一个大脚本复制粘贴到终端中可能会因缓冲区过载而使 CTF 机器卡住或崩溃。相反,将其包裹在 Here Document 中 — 这可以让 shell 安全地以流的形式接收内容,而不是原始的粘贴洪流:
```
cat > LinEnum-ng.sh << 'EOF'
EOF
chmod +x LinEnum-ng.sh && ./LinEnum-ng.sh
```
`'EOF'` 周围的单引号很重要 — 它们可以防止 shell 在脚本写入磁盘时尝试展开其中的变量。
## 特性一览对比
| 特性 | LinEnum | linPEAS | LinEnum-ng |
|---------|---------|---------|------------|
| 内核 CVE 匹配 | ❌ | ✅ | ✅ |
| GTFOBins SUID/sudo 交叉引用 | ❌ | ✅ | ✅ |
| Kubernetes 检测 | ❌ | ✅ | ✅ |
| 非交互式 `-p` 标志 | ⚠️ | ✅ | ✅ |
| 用户名文件系统查找 | ❌ | ❌ | ✅ |
| 密码喷射提醒与提示 | ❌ | ❌ | ✅ |
| 彩色输出 | ❌ | ✅ | ✅ |
| 版本稳定性 | ✅ | ⚠️ 频繁变化 | ✅ |
| 针对 OSCP,无噪音 | ✅ | ⚠️ 非常详细 | ✅ |
## ⭐ 支持
如果 LinEnum-ng 帮助你获得了 Shell、通过了 OSCP 考试,或在 CTF 中为你节省了时间,请考虑给个 Star。这有助于其他人找到这个工具,并推动项目持续发展。
*LinEnum-ng 由 [Strikoder](https://github.com/strikoder) 开发*
标签:Docker, GTFOBins, Linux提权, LXC, OSCP, sudo, SUID, Web截图, Web报告查看器, 内核CVE, 协议分析, 安全枚举, 安全测试, 安全防御评估, 容器安全, 密码喷洒, 应用安全, 攻击性安全, 无线安全, 权限提升, 枚举脚本, 漏洞检查, 非交互式, 颜色输出