No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sanekyo-pidor fc7767aee3 purge empty-cred rows: delete brand-match pseudo-pocs, gate the rest
- deleted 7 pocs that never tested their cve and matched every
  device of the brand (23459, 2471, 30563, 26801, 27359, 45222,
  47221): brand string on page is not a vuln check
- gated on extracted creds: 36260, 7029, avtech-auth-bypass,
  avtech-cgibox-download, 8229 (dropped empty fallback),
  geovision-picturecatch (dropped unparseable-dump fallback),
  33045 (same 37777 fix as 33044)
- 28171 now extracts account creds through its own put
  primitive before reporting; 28808 parses isapi username
  and password fields and reports only on a pair
- policy enforced by test: no hardcoded empty-cred return
  in any poc, removed modules absent from registry
- readme + tui: 44 exploits
2026-10-16 10:59:57 +03:00
IngramRefreshed purge empty-cred rows: delete brand-match pseudo-pocs, gate the rest 2026-10-16 10:59:57 +03:00
tests purge empty-cred rows: delete brand-match pseudo-pocs, gate the rest 2026-10-16 10:59:57 +03:00
.gitignore ingram-refreshed: EmbedXPL-Forge integration 2026-10-15 18:12:49 +03:00
ingram_tui.py purge empty-cred rows: delete brand-match pseudo-pocs, gate the rest 2026-10-16 10:59:57 +03:00
LICENSE Ingram-Pro Refreshed: 47 POCs, credential harvesting, ONVIF WSSE, TUI, post-exploitation device info 2026-10-14 19:04:33 +03:00
README.md purge empty-cred rows: delete brand-match pseudo-pocs, gate the rest 2026-10-16 10:59:57 +03:00
requirements.txt Ingram-Pro Refreshed: 47 POCs, credential harvesting, ONVIF WSSE, TUI, post-exploitation device info 2026-10-14 19:04:33 +03:00
run_ingram_refreshed.py fix premature rtsp recording + dual-protocol scan + route-less guard 2026-10-15 21:13:49 +03:00

ingram-refreshed

Network Camera Vulnerability Scanner with Post-Exploitation Harvesting & RTSP Attack Engine

Based on the original Ingram framework. ingram-refreshed doesn't just find vulnerabilities — it applies them: logs in, extracts credentials, pulls the device model, firmware version, serial number, and builds ready-to-play RTSP stream URLs for every compromised device.


Features

  • CVE Exploitation — unauthenticated RCE, authentication bypass, credential disclosure (2017–2024)
  • Weak Password Brute Force — vendor-prioritized credential pairs: 38 camera-brand wordlists + a 653-pair generic dictionary, tried brand-first so default devices crack in 1-3 attempts
  • AVTECH Auth Bypass — /cgi-bin/user/Config.cgi?.cab dumps Account.LocalPassword= in clear text
  • P2P WiFiCam Credential Disclosure — CVE-2017-8225: GoAhead /system.ini binary parse, admin user+password in plain text (hundreds of OEM re-brands)
  • Herospeed/Longsee Full Kit — /vb.htm?selectalluserlist XVR interface (base64 passwords) AND the modern API chain: SHA-256 KDF login → /api/system/import-export DES/SQLite config decrypt → credentials and IPs of every connected camera (t_channel_node), with the AES search-camera static-salt fallback; hardcoded backdoors (admin:MI1YSANORQ4NAELR, root:cxlinux) live in the vendor wordlist
  • Geovision CGI Injection — anonymous /PictureCatch.cgi writes an SSI include; /ssi.cgi renders the full config with Login/Passwd in clear text
  • Dahua 37777 Credential Extraction — CVE-2013-6117: binary protocol login with the auth flag unset dumps UserName/Password in clear text (legacy a0-probe fallback included)
  • Tiandy Credential Disclosure — proprietary TCP/3001 protocol PSW recovery leaks the admin password (DES + static substitution table)
  • RTSP Attack Engine (cameradar port) — full pipeline for RTSP ports 554/5554/8554: route dictionary brute-force (200+ paths), Basic/Digest auth detection, credential brute-force (vendor pairs first), stream validation, re-attack heuristic, M3U playlist output
  • RTSP Banner Fingerprinting (NSE port) — device brand identified from the RTSP Server: header (Hikvision, Dahua, Axis, Reolink, Uniview, Tapo, ...)
  • Credential Harvesting — every hit is applied live: login + credentials.csv output with user/password, plus multiplier rows for cameras discovered through NVR config dumps
  • Device Intelligence — model, firmware, serial number via ISAPI / Dahua RPC / Foscam CGI / Axis param.cgi / Uniview PSIA / ONVIF GetDeviceInformation (WSSE digest)
  • RTSP Links — a ready-to-paste rtsp://user:pass@ip/... URL per compromised device (brand templates, or the actually discovered route from the RTSP engine)
  • Snapshot Capture — auto-fetch live snapshots: brand-specific endpoints first, then a 17-path universal fallback (Dahua/Amcrest, Hikvision ISAPI, Axis, Reolink, Foscam, Vivotek, Xiongmai, P2P, Tapo, MVPower) tried with and without found credentials
  • RCE Output Dumps — Hikvision CVE-2021-36260, AVTECH CVE-2024-7029 and Geovision SYS_CFG dumps saved to files
  • High Concurrency — gevent-based scanning of large IP ranges
  • Resume — interrupted scans continue from where they stopped

Output Files

File Contents
credentials.csv ip, port, brand, user, password, vuln, model, firmware, serial, rtsp
results.csv raw vulnerability hits (ip, port, product, user, password, poc)
not_vulnerable.csv devices checked but clean
snapshots/ live JPEG snapshots from compromised cameras
streams.m3u playlist of every RTSP stream cracked by the attack engine (open in VLC)
*-rce.txt command injection / config dump output files
log.txt full debug log

Brands Covered

Brand Weak Password Credential Disclosure CVE POCs RTSP
Hikvision ✅ 7921 36260 + ✅
Dahua ✅ 37777 binary protocol (CVE-2013-6117) 33044, 33045, + ✅
Amcrest 8229 — ✅ ✅
EZVIZ ✅ — — ✅
Reolink ✅ — — ✅
Hanwha ✅ — — ✅
Uniview ✅ PSIA info disclosure ✅
Xiongmai ✅ bypass — ✅
AVTECH ✅ Config.cgi 7029, 14514 ✅
Axis ✅ — — ✅
D-Link (DCS) ✅ — 40655 ✅
Foscam ✅ — — ✅
GeoVision ✅ PictureCatch SSI — ✅
Instar / Netwave / NUUO / Reecam / Tenda ✅ — — —
GoAhead P2P WiFiCam — CVE-2017-8225 — ✅
Herospeed/Longsee ✅ (vb.htm + API) selectalluserlist + import-export + search-camera — ✅
Tiandy — TCP/3001 PSW — ✅
Vivotek / Mobotix / Bosch / Pelco / Jovision / Grandstream / ANNKE / Intelbras / Edimax — — — ✅ (banner)
Generic ONVIF ✅ — — ✅
Any RTSP device — — — ✅ full brute-force

CVEs Covered (Highlights)

CVE Target Type
CVE-2024-7029 AVTECH Unauth RCE (root)
AVTECH auth bypass AVTECH Password disclosure (Config.cgi)
AVTECH cgibox read AVTECH Unauth file read (Account1, /etc/passwd)
CVE-2024-39943 Dahua RCE
CVE-2017-8229 Amcrest Unauth credential download
CVE-2017-8225 P2P WiFiCam (GoAhead) Credential disclosure (/system.ini)
CVE-2023-28808 Hikvision Hybrid SAN Auth bypass (ISAPI)
CVE-2022-28171 Hikvision Hybrid SAN Unauth RCE (command injection)
CVE-2021-36260 Hikvision Unauth RCE (command injection)
CVE-2021-33044 / 33045 Dahua Auth bypass
CVE-2021-40655 D-Link Info disclosure
CVE-2018-9995 TBK DVR family Unauth credential dump
CVE-2017-7921 Hikvision Unauth config decryption
+ legacy AVTECH / Netwave / GeoVision CVEs
EDB-43983 Geovision Anonymous CGI injection → clear-text Login/Passwd
Tiandy PSW (EDB-48799) Tiandy IPC/NVR Admin password recovery (TCP/3001)
Herospeed XVR Herospeed/Longsee NVR Account list dump (/vb.htm)

Quick Start

Requirements

  • Python 3.8+
  • Linux / Windows / macOS

Installation

cd ingram-refreshed
pip install -r requirements.txt

Usage

Pretty TUI (recommended — no flags needed):

python ingram_tui.py

The wizard asks for targets (IP / CIDR / range / file), ports (presets or custom, including an RTSP-only preset), brute-force wordlists and options, then starts the scan in-place and shows every harvested credential in a table when it finishes.

Classic CLI:

# Scan a single target directly (no file needed)
python run_ingram_refreshed.py -i 192.168.1.100 -o results

# Scan a whole subnet
python run_ingram_refreshed.py -i 192.168.1.0/24 -o results

# Scan from a file (one IP / CIDR / range per line)
python run_ingram_refreshed.py -i targets.txt -o results

# Custom brute-force wordlists (also used by the RTSP engine)
python run_ingram_refreshed.py -i targets.txt -o results --users-file users.txt --passwords-file pass.txt

# Faster scan, specific ports only
python run_ingram_refreshed.py -i targets.txt -o results -p 80 8080 55555 -t 300 -T 2

# RTSP-only stream hunt (route + credential brute-force)
python run_ingram_refreshed.py -i targets.txt -o results -p 554 5554 8554

# Disable snapshot capture (credential harvesting stays on)
python run_ingram_refreshed.py -i targets.txt -o results -D

# Debug mode
python run_ingram_refreshed.py -i targets.txt -o results --debug

After the scan, open results/credentials.csv — every row is a device you own, with login, password, model, firmware, serial and an RTSP link ready for VLC:

ip,port,brand,user,password,vuln,model,firmware,serial,rtsp
192.168.1.42,80,hikvision,admin,admin12345,hikvision-weak-password,DS-2CD1043G0-I,V5.7.1,DS2CD...,rtsp://admin:admin12345@192.168.1.42:554/Streaming/Channels/101
192.168.1.43,554,hikvision,admin,123456,rtsp-brute-force,Hikvision IP Camera,,,rtsp://admin:123456@192.168.1.43:554/Streaming/Channels/101

RTSP-discovered devices carry the actually brute-forced stream route in their URL (better than brand templates), and every accessible stream is also collected in results/streams.m3u — open it directly in VLC.


Disclaimer

This tool is intended for authorized security assessments only (e.g. auditing your own camera fleet). The authors assume no liability for misuse. Always obtain proper permission before scanning.


License

This project is licensed under the GNU General Public License v3.0 — see LICENSE.


Credits

  • Original Ingram by jorhelp
  • DahuaConsole integration
  • cameradar by Ullaakut (RTSP attack engine wordlists & pipeline design)
  • EmbedXPL-Forge (RTSP client/attacker port, NSE fingerprint tables, Herospeed/Tiandy/Geovision POC research)
  • Community POC contributors