Skip to main content

RTSP Kit (rtspkit)

PyPI Version Python Versions License: MIT

RTSPKit is a powerful vulnerable CCTV & WebCam finder, stream validator, and exposer. It is a high-performance network scanner designed to discover, validate, audit credentials, render multi-camera video feeds, and record live RTSP video streams across IP networks.


Key Features

  • Parallel Port & Stream Validation: High-concurrency network socket scan and RTSP stream verification.
  • RTSP Subpath Probing: Automatic route scanning for popular IP camera routes (/h264, /live/ch0, /stream1, /onvif1, etc.).
  • Credential Brute-Forcing: Custom credential pair testing and dictionary attack modes for locked camera streams.
  • Non-Blocking Multi-Camera Grid View: Real-time Picture-in-Picture (PiP) layout renderer powered by background frame readers.
  • Stream Recording Mode: Timed or manual on-demand recording of live RTSP streams to .mp4 video files.
  • VLC Integration: Launch streams directly inside external VLC Media Player.
  • Metadata Extraction & Export: Automatically logs video resolution and FPS metadata to JSON, CSV, or TXT formats.
  • CLI & Python API: Fully operational as both a command-line tool (rtspkit) and a Python library module (import rtspkit).

Installation

Install rtspkit directly from PyPI using pip:

pip install rtspkit

Quickstart & Usage

1. Command Line Interface (CLI)

Interactive Mode (Wizard)

Run rtspkit without positional parameters to open the step-by-step interactive setup wizard:

rtspkit

Basic Subnet Scan & Multi-Camera Grid View

Scan a /24 subnet and launch a 3-column PiP video grid:

rtspkit 192.168.1.0/24

Path Probing & Dictionary Brute-Force

Probe common RTSP paths and execute credential brute-forcing:

rtspkit 192.168.1.0/24 --probe-paths -b -U usernames.txt -P passwords.txt -o results.json

Single Camera Inspector Mode

Interactive stream reader (n = next, p = previous, s = screenshot, r = record, q = quit):

rtspkit 192.168.1.0/24 --mode single

Record Live Streams

Record active streams for 30 seconds:

rtspkit 192.168.1.50 --mode record --rec-duration 30

2. Programmatic Python API

You can also import and use rtspkit inside your own Python projects:

from rtspkit import RTSPScanner, GridRenderer, SingleStreamViewer

# Initialize scanner
scanner = RTSPScanner(port=554, timeout=3.0, threads=50)

# Scan target IP network or host list
cameras = scanner.run_scan(targets=["192.168.1.100"], paths=["", "/live/ch0"])

for cam in cameras:
    if cam.working:
        print(f"Found camera at {cam.ip}: {cam.url} ({cam.width}x{cam.height})")

# Launch PiP Grid view if cameras found
working = [c for c in cameras if c.working]
if working:
    grid = GridRenderer(working, cols=3)
    grid.start_preview()

Command Line Flags Reference

Flag Long Flag Description Default
target Positional Target IP, CIDR subnet (192.168.1.0/24), range (192.168.1.1-50), or target file Interactive
-f --targets-file File containing batch list of target IPs/subnets None
-p --port Target RTSP TCP port 554
-t --threads Number of concurrent worker threads 50
--timeout --timeout Network socket and stream timeout (seconds) 3.0
-c --credentials Single user:pass authentication pair None
-b --brute Enable dictionary brute-forcing for LOCKED streams False
-U --user-file Path to custom usernames list Built-in list
-P --pass-file Path to custom passwords list Built-in list
--probe-paths --probe-paths Probe popular RTSP camera paths (/h264, /live/ch0, etc.) False
-o --output Save results to file (.json, .csv, .txt) None
--mode --mode Execution mode (grid, single, record, scan-only) grid
--grid-cols --grid-cols Number of columns in PiP grid preview 3
--rec-duration --rec-duration Duration in seconds for stream recording 30

Step-by-Step PyPI Publishing Guide

Follow these steps to publish rtspkit to the Python Package Index (PyPI):

1. Prerequisites

Ensure you have build and twine installed:

pip install --upgrade build twine

2. Create a PyPI Account & API Token

  1. Register an account on PyPI (pypi.org).
  2. Go to Account Settings -> API Tokens and generate a new API token with Entire account or Project scope.
  3. Copy your generated token (starts with pypi-).

3. Build Source & Wheel Packages

Navigate into the rtspkit root directory containing pyproject.toml and run:

python -m build

(Or legacy build command: python setup.py sdist bdist_wheel)

This creates distribution files in the dist/ directory:

  • dist/rtspkit-1.0.0-py3-none-any.whl
  • dist/rtspkit-1.0.0.tar.gz

4. Verify Package Build Integrity

Run twine check to ensure your README, metadata, and license format correctly:

twine check dist/*

Publish to TestPyPI first to verify package rendering:

twine upload --repository testpypi dist/*
  • Username: __token__
  • Password: pypi-your-testpypi-api-token

Test installation from TestPyPI:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple rtspkit

6. Publish Package to Official PyPI

Publish your package live on PyPI:

twine upload dist/*
  • Username: __token__
  • Password: pypi-your-live-pypi-api-token

Once complete, your package will be live on PyPI and installable globally via:

pip install rtspkit

License

This project is licensed under the MIT License.

Metadata

Release files for rtspkit 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rtspkit 1.0.0
File Size Uploaded Provenance
rtspkit-1.0.0.tar.gz 19.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rtspkit 1.0.0
File Interpreter ABI Platform
rtspkit-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.9 kB

Release files / rtspkit-1.0.0.tar.gz

Download URL rtspkit-1.0.0.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b8525e489dd85af02b1b3153cc35300d56e2b2076921605a7267dfc73920434c
BLAKE2b-256 checksum
How to use checksums
75b07ab35091c6024807abb5a7d05faabb66c4a1e584f2b22222a1750c6f347b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / rtspkit-1.0.0-py3-none-any.whl

Download URL rtspkit-1.0.0-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc6bc7a436e4ea18a7a808037e0f28cabd703334835759f5bf577164a26c8938
BLAKE2b-256 checksum
How to use checksums
954b13f9c77a1d480ce7d5296d2891646fa0af120971badcdee0691adff7667d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for rtspkit 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page