x-glacier/kali-pentest / kali-pentest-zh
kali-pentest-zh
Flagged通过 SSH 或 Docker 使用 Kali Linux CLI 工具执行授权渗透测试。 覆盖:信息收集、漏洞分析、嗅探与欺骗、Web/API 渗透、漏洞利用、密码攻击、无线、云原生安全、RFID/NFC、VoIP/ICS、逆向工程、取证分析、后渗透/C2、报告生成。
references/password/tools/hashid.md
View on GitHub# hashID
- **Category**: Password Attacks / Hash Identification
- **Risk Level**: 🟢 Low
---
## 描述
通过分析哈希字符串的格式、长度和字符集来识别其类型。支持 220 余种哈希类型,并提供对应的 hashcat 模式编号和 john 格式字符串。在运行 hashcat 或 john 之前必不可少的第一步——猜错哈希类型会在错误算法上浪费大量破解时间。
## 安装
```bash
sudo apt install hashid
```
## 参数说明
| 参数 | 说明 |
|------|------|
| `<hash>` | 待识别的单个哈希字符串 |
| `-m` | 显示 hashcat 模式编号 |
| `-j` | 显示 john 格式字符串 |
| `-e` | 扩展模式(显示所有可能匹配,而不仅是最可能的) |
| `-o <file>` | 将输出保存到文件 |
## 常用命令
```bash
# 识别单个哈希
hashid '5f4dcc3b5aa765d61d8327deb882cf99'
# 显示 hashcat 模式编号
hashid -m '5f4dcc3b5aa765d61d8327deb882cf99'
# 显示 john 格式字符串
hashid -j '$6$rounds=5000$salt$hash...'
# 从文件读取多个哈希
hashid -m -j hashes.txt
# 扩展模式(显示所有可能类型)
hashid -e '098f6bcd4621d373cade4e832627b4f6'
# 典型工作流:识别 → 破解
hashid -m 5f4dcc3b5aa765d61d8327deb882cf99
# 输出:MD5 [Hashcat Mode: 0]
hashcat -m 0 5f4dcc3b5aa765d61d8327deb882cf99 /usr/share/wordlists/rockyou.txt
```
## 注意事项
1. hashid 只能缩小可能范围,无法保证确定类型——应优先测试最可能的候选类型。
2. 常见哈希类型识别要点:MD5(32 位十六进制),SHA1(40 位),SHA256(64 位),bcrypt(以 `$2y$` 开头),NTLM(32 位十六进制,上下文不同),NetNTLMv2(包含 `:::`)。
3. 若 hashid 显示多种可能,从最简单的算法开始(MD5 > SHA1 > SHA256),它们破解速度最快。
4. 对于从 Windows 捕获的 NTLM 哈希(格式:`User:RID:LM:NTLM:::`),使用 hashcat 模式 1000 针对 NTLM 部分进行破解。
5. 替代工具:`hash-identifier`(Kali 预装)和 `name-that-hash`(更现代,准确率更高)。
---
## 官方参考
- [hashid (GitHub)](https://github.com/psypanda/hashID)
- [Kali hashid](https://www.kali.org/tools/hashid/)
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 |