HikvisionExploiter
HikvisionExploiter is a Python-based utility designed to automate exploitation and directory accessibility checks on Hikvision network cameras exploiting the Web interface Version 3.1.3.150324 + CVE-2021-36260 Detection
Install / Use
/learn @tamim1089/HikvisionExploiterREADME
HikvisionExploiter
HikvisionExploiter is a powerful and automated exploitation toolkit targeting unauthenticated endpoints on Hikvision IP cameras, particularly those running firmware version 3.1.3.150324.
It performs:
- Snapshot access verification
- Config file retrieval and decryption
- User credential extraction
- Remote command execution using CVE-2021-36260
- Multithreaded target scanning with colored, timestamped logs
Built for researchers, red teamers, and IoT security enthusiasts.
📚 Table of Contents
✅ Features
- 🔓 Directory Check: Verifies
/onvif-http/snapshotendpoint for snapshot exposure - 📸 Snapshot Retrieval: Downloads snapshots and stores them in timestamped folders
- 🛰️ Device Info Dump: Parses device model, serial, firmware, and build data
- 👥 User Info Dump: Extracts usernames and privilege levels from XML
- 🔐 Config Decryption: Downloads encrypted
/System/configurationFile, decrypts using AES + XOR, and extracts credentials - 💣 CVE-2021-36260 Detection:
- Header bypass check on
/Security/users - PUT-to-file RCE check via
webLanguageinjection
- Header bypass check on
- 🖥️ Remote Shell Support: Built-in Bash shell for remote command execution
- 📁 Organized Logs: Creates structured logs per IP:port in
logs/ - ⚡ Mass Scanning: Supports thousands of targets using
ThreadPoolExecutor - 🎨 Colorized Output: Easily distinguishable results with ANSI colors
🧰 Requirements
- Python 3.6+
pip install -r requirements.txtffmpeg(optional, for future snapshot-to-video capability)pycrypto(for config decryption):pip install pycrypto
📥 Installation
git clone https://github.com/HexBuddy/HikvisionExploiter.git
cd HikvisionExploiter
pip3 install -r requirements.txt
🚀 Usage
1. Prepare Targets
Create a targets.txt file with the following format:
IP:PORT
Example:
192.168.1.10:80
10.10.10.20:81
2. Run the Scanner
python3 checker.py
This will:
- Check for snapshot access
- Download and parse device/user info
- Attempt config file decryption
- Test for RCE via CVE-2021-36260
- Save all logs under
logs/IP_PORT_TIMESTAMP/
🐚 Shell Access
To interactively run commands on a vulnerable device:
chmod +x shell.sh
./shell.sh <ip:port>
Example:
./shell.sh 192.168.1.10:80
If vulnerable, you'll enter an interactive shell:
hikvision-shell> uname -a
Linux hik-cam 3.0.8 #1 Wed Mar 18 ...
🔎 Finding Targets
Use the following Shodan dork to locate exposed Hikvision cameras:
3.1.3.150324
📄 Nuclei Template
A Nuclei-compatible template is included: nuclei-template.yaml
Usage:
nuclei -t nuclei-template.yaml -list targets.txt
Detects:
- Open snapshot feed
- Exposed config download
- Leaked user info via XML
⚖️ License
MIT License ©
See LICENSE for more details.
Telegram: @HexBuddy127001
Built with ❤️ for educational and ethical research only.
Star History
Related Skills
clearshot
Structured screenshot analysis for UI implementation and critique. Analyzes every UI screenshot with a 5×5 spatial grid, full element inventory, and design system extraction — facts and taste together, every time. Escalates to full implementation blueprint when building. Trigger on any digital interface image file (png, jpg, gif, webp — websites, apps, dashboards, mockups, wireframes) or commands like 'analyse this screenshot,' 'rebuild this,' 'match this design,' 'clone this.' Skip for non-UI images (photos, memes, charts) unless the user explicitly wants to build a UI from them. Does NOT trigger on HTML source code, CSS, SVGs, or any code pasted as text.
openpencil
2.0kThe world's first open-source AI-native vector design tool and the first to feature concurrent Agent Teams. Design-as-Code. Turn prompts into UI directly on the live canvas. A modern alternative to Pencil.
ui-ux-pro-max-skill
58.5kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
ui-ux-pro-max-skill
58.5kAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
