HashEye 是一个强大的Python命令行工具,用于即时检测和分析哈希类型。它提供关于哈希格式、安全级别、熵分析和模式检测的详细信息。
由 Isaac Security Labs 提供支持
🔗 链接:
hasheye.py 到你的系统chmod +x hasheye.py
git clone https://github.com/ishaklaz/Hash-Eye.git
cd Hash-Eye
pip install -r requirements.txt
分析单个哈希:
python3 hasheye.py 5d41402abc4b2a76b9719d911017c592
python3 hasheye.py [OPTIONS] [HASH...]
选项:
-h, --help 显示帮助信息并退出-j, --json 以JSON格式输出结果-f, --file 从文件读取哈希(每行一个)-s, --simple 显示简化输出,不包含详细分析-v, --version 显示版本信息python3 hasheye.py 5d41402abc4b2a76b9719d911017c592
输出:
[+] HashEye Result
──────────────────────────────────────────────────
Hash : 5d41402abc4b2a76b9719d911017c592
Length : 32
Format : HEX
Type(s) : MD5 / NTLM (possible) / LM Hash (possible)
Entropy : 3.8750
Security Level : Weak
Recommendation : Consider upgrading to SHA-256 or SHA-512
──────────────────────────────────────────────────
Powered by Isaac Security Labs
python3 hasheye.py 5d41402abc4b2a76b9719d911017c592 --json
输出:
{
"hash": "5d41402abc4b2a76b9719d911017c592",
"length": 32,
"format": "hex",
"types": [
"MD5",
"NTLM (possible)",
"LM Hash (possible)"
],
"entropy": 3.875,
"security_level": "Weak",
"recommendation": "Consider upgrading to SHA-256 or SHA-512",
"pattern_analysis": {
"case_mixed": false,
"case_lower": true,
"case_upper": false,
"repeating_chars": [],
"has_sequential": false
}
}
python3 hasheye.py hash1 hash2 hash3
创建一个文件 hashes.txt:
5d41402abc4b2a76b9719d911017c592
aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
然后运行:
python3 hasheye.py --file hashes.txt
python3 hasheye.py 5d41402abc4b2a76b9719d911017c592 --simple
python3 hasheye.py e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
| 长度 | 哈希类型 |
|---|---|
| 24 | bcrypt(可能), scrypt(可能) |
| 44 | bcrypt, scrypt |
| 60 | Argon2(可能) |
| 86 | bcrypt |
熵衡量哈希的随机性:
该工具检测:
HashEye可以通过JSON输出集成到你的脚本中:
#!/bin/bash
result=$(python3 hasheye.py "$hash" --json)
hash_type=$(echo "$result" | python3 -c "import sys, json; print(json.load(sys.stdin)['types'][0])")
echo "Detected: $hash_type"
import subprocess
import json
def detect_hash(hash_string):
result = subprocess.run(
['python3', 'hasheye.py', hash_string, '--json'],
capture_output=True,
text=True
)
return json.loads(result.stdout)
info = detect_hash('5d41402abc4b2a76b9719d911017c592')
print(f"Type: {info['types'][0]}")
print(f"Security: {info['security_level']}")
python3 hasheye.py 5d41402abc4b2a76b9719d911017c592
# Length: 32, Type: MD5
python3 hasheye.py aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
# Length: 40, Type: SHA1
python3 hasheye.py e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
# Length: 64, Type: SHA256
python3 hasheye.py cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e
# Length: 128, Type: SHA512
解决方案:你的终端可能不支持ANSI转义码。颜色是可选的,不影响功能。
解决方案:确保你的哈希字符串只包含十六进制字符(0-9, a-f, A-F)或有效的Base64字符。
解决方案:使用绝对路径,或确保在使用 --file 选项时位于正确的目录。
欢迎贡献!请随时提交 Pull Request。
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 MIT 许可证 - 详见 LICENSE 文件。
联系我们:
如果有问题、疑问或贡献:
由 Isaac Security Labs ❤️ 制作
| 长度 | 哈希类型 |
|---|
| 32 | MD5, NTLM(可能), LM Hash(可能) |
| 40 | SHA1, RIPEMD-160 |
| 56 | SHA224 |
| 64 | SHA256, SHA3-256, Blake2b-256, RIPEMD-256 |
| 96 | SHA384 |
| 128 | SHA512, SHA3-512, Blake2b-512 |