Open-source project
jorhelp/Ingram avatar
jorhelp/Ingram

Ingram: a Python scanner for Hikvision, Dahua and D-Link camera flaws

Webcam vulnerability scanning tool.

2,425 stars380 forksPythonGPL-3.0

At a glance

What is it?
Ingram is a GPL-3.0 Python framework that sweeps IP ranges for known webcam and CCTV vulnerabilities. It is built for Linux or Mac, runs on Python 3.8, and writes everything to a CSV plus a snapshot folder.
Who is it for?
Adopt Ingram if you already have written authorisation to test a defined set of camera hosts and you want CSV output you can triage by hand. Skip it if you need Windows support, a maintained plugin API, or scan state you can resume exactly.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository last received commits 43 days ago.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • jorhelp/Ingram2,425 ★ · +38
Star history
Repository2026-09-292026-11-24
jorhelp/Ingram2.4k2.4k

38 Stars in the last 56 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What Ingram scans and who it is written for

Ingram is a vulnerability scanning framework aimed at network cameras. The README says it has integrated support for common devices from Hikvision, Dahua, Uniview and D-Link, and the repository topics list specific CVEs: CVE-2017-7921, CVE-2020-25078, CVE-2021-33044 and CVE-2021-36260. Those identifiers matter more than any general claim. A scanner that names the CVE it checks is telling you exactly which signature it carries, and you can compare that list against the firmware versions in your own inventory before you trust a clean result.

The intended user is a security tester working from Linux or Mac who has a list of IP addresses and wants a fast pass over them. The README is explicit that the tool is for security testing only and forbids illegal use. That framing is not decoration. Running this against addresses you do not own or have written permission to test is the failure mode the project itself warns about, and the output files contain credentials and device snapshots, so the results are sensitive material in their own right.

The project credits three outside sources for specific capabilities: Aiminsun for CVE-2021-36260, chrisjd20 for a Hikvision config file decryptor, and mcw0 for DahuaConsole. That tells you the detection logic is assembled from other people's research rather than written from scratch, which is normal for this class of tool but also means the coverage is only as current as those upstream efforts.

How the scan pipeline is put together

The entry point is run_ingram.py at the repository root, with the scanning logic under the Ingram/ package. The README points to Ingram/config.py as the place where default ports are defined, so the port list is configuration rather than hardcoded logic. When a target in the input file carries an explicit port, such as 192.168.6.6:8000, the scan uses that port. When it does not, only the common ports from config.py are probed unless you pass ports on the command line.

Concurrency is process-based. The -t flag sets the number of processes and the README gives 300 as the default, with 500 shown as an example of raising it. That default is high enough that a home connection will saturate before the tool does, and the README acknowledges as much by telling you to tune it against your machine and network.

Results land in a fixed directory structure: results.csv, not_vulnerable.csv, a snapshots folder and log.txt. The CSV columns are documented as ip, port, device type, username, password and vulnerability entry. Splitting vulnerable from non-vulnerable hosts into two files is a small decision with real operational value, because the interesting set stays short even when the input range is large.

The dependency list in requirements.txt is worth reading before you install. It includes gevent, pwntools, pycryptodome, pyOpenSSL, lxml, ndjson, IPy, loguru, colorama, requests and tzlocal. The presence of pwntools and pycryptodome suggests the tool does more than send HTTP requests: it decrypts configuration files and handles binary protocol exchanges. That is also why the Python version constraint is tight.

Installing Ingram and running a first scan

The README requires Linux or Mac, Python 3.8 or above, and advises against 3.11 because of package compatibility. Start by cloning the repository and creating an isolated environment, which keeps the pwntools and pycryptodome dependencies away from your system Python.

bash
git clone https://github.com/jorhelp/Ingram.git
cd Ingram
pip3 install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt

After that the environment is ready. Because the dependencies live in venv, the README notes that you must reactivate it with source venv/bin/activate before every run.

Next, create a target file. One target per line, and the README shows that a hash marks a comment line.

code
# single address
192.168.0.1

# address with port
192.168.0.2:80

# CIDR range
192.168.0.0/16

# dashed range
192.168.0.0-192.168.255.255

With that file in place, the basic invocation names the input file and an output directory. If you want ports beyond the defaults in Ingram/config.py, list them explicitly, and the process count is adjustable with -t.

bash
python3 run_ingram.py -i targets.txt -o out
python3 run_ingram.py -i targets.txt -o out -p 80 81 8000
python3 run_ingram.py -i targets.txt -o out -t 500

When it finishes, look in the output directory. results.csv holds the full findings in the ip, port, device type, username, password, vulnerability entry format, not_vulnerable.csv holds hosts that did not expose anything, snapshots holds images from some devices, and log.txt records the run. The --disable_snapshot flag turns off snapshot capture, which is the option to reach for when you want to reduce what you collect.

Combining Ingram with a port scanner to cut the target list

Scanning a wide CIDR with Ingram directly wastes time on hosts that have nothing listening. The README describes a two-stage workflow: use a fast port scanner to find live hosts first, then feed only those into Ingram. The example uses masscan against port 80 and the 8000 to 8008 range.

bash
masscan -p80,8000-8008 -iL 目标文件 -oL 结果文件 --rate 8000
grep 'open' 结果文件 | awk '{printf"%s:%s\n", $4, $3}' > targets.txt
python run_ingram.py -i targets.txt -o out

The awk line reshapes masscan's output into the ip:port form Ingram expects, which is the whole point of the exercise. Ingram then skips discovery and goes straight to fingerprinting and vulnerability checks on hosts that are known to respond. For a large address block this is the difference between a scan that finishes and one you abandon. Note that the shell snippets in the README use Chinese placeholder filenames, so substitute your own paths.

Where Ingram falls short

Resume behaviour is the clearest limitation, and the README states it plainly rather than hiding it. The tool does not record running state in real time; it writes state at intervals. So if a scan dies from a network problem, re-running the same command continues roughly where it left off, but the README warns the recovery is not exact. If you need deterministic, checkpointed scans, this design will not give you that.

Platform support is the second constraint. Linux and Mac only. There is no Windows path documented. The Python version window is narrow as well: 3.8 and above, but the README discourages 3.11 because of package compatibility. That combination of a pinned interpreter and heavy native dependencies means containerising the tool is often easier than installing it on a shared workstation.

Two features have been removed. The WeChat notification integration is struck through and marked as removed, and the real-time preview, including the show/show_rtsp/show_all.py script, is also marked removed. The README still contains the old configuration snippet for the WeChat UID and token, which is now dead code. If you find a tutorial online that walks through either feature, it predates the current state of the repository.

Finally, the development plan lists GeoIP-based geographic selection and distributed scanning as unchecked items. Neither exists. Treat any description of Ingram as a distributed scanner as incorrect.

Ingram compared with Shodan and Censys

The obvious alternative for camera exposure work is a search engine such as Shodan or Censys. The difference in approach is fundamental. Shodan and Censys are passive indexes: someone else scanned the internet, stored the banners, and you query the results. You never send a packet to the target. Ingram is active. It takes your address list, opens connections from your machine, attempts default credentials, decrypts configuration files and captures snapshots.

That difference decides which tool is appropriate. If you are assessing your own network from the inside, or a client's network under contract, an active scanner is the only way to see hosts that are not reachable from the public internet. If you want to know whether a device is exposed globally, a passive index answers that without touching it. Running Ingram against public addresses you do not control is exactly what the project's disclaimer prohibits.

The second difference is output. A search engine gives you a query interface and an API. Ingram gives you four files on disk, one of which contains plaintext credentials. That is a lower-friction workflow for a one-off engagement and a liability if those files are not handled carefully afterwards.

Licence, maintenance and upgrade cost

Ingram is licensed under GPL-3.0. If you modify it and distribute the result, the copyleft terms apply to your distribution; if you only run it internally, the obligations are lighter. This is a description of the licence, not legal advice, and anyone embedding the scanner in a commercial product should read the full text rather than rely on a summary.

The last push to the repository was on 2026-08-19, and the most recent tagged release is v2.0.0 from 2023-08-08. The repository is not archived. The gap between the v2.0.0 tag and the recent commits means the project is being touched but not released in tagged form, so if you pin to a release you are pinning to code from 2023.

Upgrade cost is dominated by the dependency set. pwntools, pycryptodome, pyOpenSSL and gevent all have their own release cadences and native build requirements, and the README's warning about Python 3.11 exists precisely because those packages lag. Any upgrade of the interpreter or the dependencies should be tested in the virtual environment first, since a broken gevent or pwntools install takes the whole scanner down.

Editorial conclusion

Adopt Ingram if you already have written authorisation to test a defined set of camera hosts and you want CSV output you can triage by hand. Skip it if you need Windows support, a maintained plugin API, or scan state you can resume exactly. Before you run it, confirm Python 3.8 is available, check that your target file uses the ip:port or CIDR syntax the README shows, and read the GPL-3.0 terms if you plan to redistribute anything built on it.

Frequently asked questions

What does Ingram, the webcam scanner, actually do?

It scans a list of IP addresses for known vulnerabilities in network cameras from vendors including Hikvision, Dahua, Uniview and D-Link, and writes the findings to results.csv along with snapshots from some devices.

Which operating systems and Python version does Ingram need?

The README says to use Linux or Mac and to install Python 3.8 or above, while advising against 3.11 because many packages are not well compatible with it.

How do I install and run Ingram?

Clone the repository, create a virtual environment with python3 -m virtualenv venv, activate it, install requirements.txt, then run python3 run_ingram.py -i targets.txt -o out. The environment has to be reactivated with source venv/bin/activate before each run.

Can Ingram resume a scan that was interrupted?

The README states that resume is supported but state is not recorded in real time, only at intervals, so re-running the same command continues the scan without recovering the exact previous state.

Official sources

  1. Issues
  2. jorhelp/Ingram on GitHub
  3. License: GPL-3.0
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/jorhelp-ingram.svg)](https://hysenlabs.com/projects/jorhelp-ingram)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/jorhelp-ingram.svg)](https://hysenlabs.com/projects/jorhelp-ingram)

Was this useful?