rtspkit 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rtspkit-1.0.0/LICENSE +21 -0
- rtspkit-1.0.0/MANIFEST.in +4 -0
- rtspkit-1.0.0/PKG-INFO +215 -0
- rtspkit-1.0.0/README.md +179 -0
- rtspkit-1.0.0/pyproject.toml +43 -0
- rtspkit-1.0.0/rtspkit/__init__.py +35 -0
- rtspkit-1.0.0/rtspkit/__main__.py +8 -0
- rtspkit-1.0.0/rtspkit/rtspkit.py +998 -0
- rtspkit-1.0.0/rtspkit.egg-info/PKG-INFO +215 -0
- rtspkit-1.0.0/rtspkit.egg-info/SOURCES.txt +14 -0
- rtspkit-1.0.0/rtspkit.egg-info/dependency_links.txt +1 -0
- rtspkit-1.0.0/rtspkit.egg-info/entry_points.txt +2 -0
- rtspkit-1.0.0/rtspkit.egg-info/requires.txt +3 -0
- rtspkit-1.0.0/rtspkit.egg-info/top_level.txt +1 -0
- rtspkit-1.0.0/setup.cfg +4 -0
- rtspkit-1.0.0/setup.py +47 -0
rtspkit-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 RTSP Kit Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT,Bridge OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
rtspkit-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: rtspkit
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: RTSPKit is a powerful vulnerable CCTV & WebCam finder, stream validator, and exposer.
|
|
5
|
+
Home-page: https://github.com/babaralijamali/rtspkit
|
|
6
|
+
Author: Babar Ali Jamali
|
|
7
|
+
Author-email: Babar Ali Jamali <babar994@gmail.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Project-URL: Homepage, https://github.com/babaralijamali/rtspkit
|
|
10
|
+
Project-URL: Repository, https://github.com/babaralijamali/rtspkit
|
|
11
|
+
Keywords: rtsp,camera,ip-camera,scanner,opencv,stream-viewer,bruteforce,pip-grid
|
|
12
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: System Administrators
|
|
15
|
+
Classifier: Topic :: Multimedia :: Video :: Display
|
|
16
|
+
Classifier: Topic :: Security
|
|
17
|
+
Classifier: Topic :: System :: Networking :: Monitoring
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Requires-Python: >=3.8
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
License-File: LICENSE
|
|
29
|
+
Requires-Dist: opencv-python>=4.5.0
|
|
30
|
+
Requires-Dist: numpy>=1.20.0
|
|
31
|
+
Requires-Dist: colorama>=0.4.0
|
|
32
|
+
Dynamic: author
|
|
33
|
+
Dynamic: home-page
|
|
34
|
+
Dynamic: license-file
|
|
35
|
+
Dynamic: requires-python
|
|
36
|
+
|
|
37
|
+
# RTSP Kit (`rtspkit`)
|
|
38
|
+
|
|
39
|
+
[](https://pypi.org/project/rtspkit/)
|
|
40
|
+
[](https://pypi.org/project/rtspkit/)
|
|
41
|
+
[](https://opensource.org/licenses/MIT)
|
|
42
|
+
|
|
43
|
+
**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.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Key Features
|
|
48
|
+
|
|
49
|
+
- **Parallel Port & Stream Validation**: High-concurrency network socket scan and RTSP stream verification.
|
|
50
|
+
- **RTSP Subpath Probing**: Automatic route scanning for popular IP camera routes (`/h264`, `/live/ch0`, `/stream1`, `/onvif1`, etc.).
|
|
51
|
+
- **Credential Brute-Forcing**: Custom credential pair testing and dictionary attack modes for locked camera streams.
|
|
52
|
+
- **Non-Blocking Multi-Camera Grid View**: Real-time Picture-in-Picture (PiP) layout renderer powered by background frame readers.
|
|
53
|
+
- **Stream Recording Mode**: Timed or manual on-demand recording of live RTSP streams to `.mp4` video files.
|
|
54
|
+
- **VLC Integration**: Launch streams directly inside external VLC Media Player.
|
|
55
|
+
- **Metadata Extraction & Export**: Automatically logs video resolution and FPS metadata to JSON, CSV, or TXT formats.
|
|
56
|
+
- **CLI & Python API**: Fully operational as both a command-line tool (`rtspkit`) and a Python library module (`import rtspkit`).
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Installation
|
|
61
|
+
|
|
62
|
+
Install `rtspkit` directly from PyPI using `pip`:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pip install rtspkit
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Quickstart & Usage
|
|
71
|
+
|
|
72
|
+
### 1. Command Line Interface (CLI)
|
|
73
|
+
|
|
74
|
+
#### Interactive Mode (Wizard)
|
|
75
|
+
Run `rtspkit` without positional parameters to open the step-by-step interactive setup wizard:
|
|
76
|
+
```bash
|
|
77
|
+
rtspkit
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### Basic Subnet Scan & Multi-Camera Grid View
|
|
81
|
+
Scan a `/24` subnet and launch a 3-column PiP video grid:
|
|
82
|
+
```bash
|
|
83
|
+
rtspkit 192.168.1.0/24
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### Path Probing & Dictionary Brute-Force
|
|
87
|
+
Probe common RTSP paths and execute credential brute-forcing:
|
|
88
|
+
```bash
|
|
89
|
+
rtspkit 192.168.1.0/24 --probe-paths -b -U usernames.txt -P passwords.txt -o results.json
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
#### Single Camera Inspector Mode
|
|
93
|
+
Interactive stream reader (`n` = next, `p` = previous, `s` = screenshot, `r` = record, `q` = quit):
|
|
94
|
+
```bash
|
|
95
|
+
rtspkit 192.168.1.0/24 --mode single
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
#### Record Live Streams
|
|
99
|
+
Record active streams for 30 seconds:
|
|
100
|
+
```bash
|
|
101
|
+
rtspkit 192.168.1.50 --mode record --rec-duration 30
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### 2. Programmatic Python API
|
|
107
|
+
|
|
108
|
+
You can also import and use `rtspkit` inside your own Python projects:
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
from rtspkit import RTSPScanner, GridRenderer, SingleStreamViewer
|
|
112
|
+
|
|
113
|
+
# Initialize scanner
|
|
114
|
+
scanner = RTSPScanner(port=554, timeout=3.0, threads=50)
|
|
115
|
+
|
|
116
|
+
# Scan target IP network or host list
|
|
117
|
+
cameras = scanner.run_scan(targets=["192.168.1.100"], paths=["", "/live/ch0"])
|
|
118
|
+
|
|
119
|
+
for cam in cameras:
|
|
120
|
+
if cam.working:
|
|
121
|
+
print(f"Found camera at {cam.ip}: {cam.url} ({cam.width}x{cam.height})")
|
|
122
|
+
|
|
123
|
+
# Launch PiP Grid view if cameras found
|
|
124
|
+
working = [c for c in cameras if c.working]
|
|
125
|
+
if working:
|
|
126
|
+
grid = GridRenderer(working, cols=3)
|
|
127
|
+
grid.start_preview()
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Command Line Flags Reference
|
|
133
|
+
|
|
134
|
+
| Flag | Long Flag | Description | Default |
|
|
135
|
+
| --- | --- | --- | --- |
|
|
136
|
+
| `target` | Positional | Target IP, CIDR subnet (`192.168.1.0/24`), range (`192.168.1.1-50`), or target file | Interactive |
|
|
137
|
+
| `-f` | `--targets-file` | File containing batch list of target IPs/subnets | `None` |
|
|
138
|
+
| `-p` | `--port` | Target RTSP TCP port | `554` |
|
|
139
|
+
| `-t` | `--threads` | Number of concurrent worker threads | `50` |
|
|
140
|
+
| `--timeout` | `--timeout` | Network socket and stream timeout (seconds) | `3.0` |
|
|
141
|
+
| `-c` | `--credentials` | Single `user:pass` authentication pair | `None` |
|
|
142
|
+
| `-b` | `--brute` | Enable dictionary brute-forcing for LOCKED streams | `False` |
|
|
143
|
+
| `-U` | `--user-file` | Path to custom usernames list | Built-in list |
|
|
144
|
+
| `-P` | `--pass-file` | Path to custom passwords list | Built-in list |
|
|
145
|
+
| `--probe-paths` | `--probe-paths` | Probe popular RTSP camera paths (`/h264`, `/live/ch0`, etc.) | `False` |
|
|
146
|
+
| `-o` | `--output` | Save results to file (`.json`, `.csv`, `.txt`) | `None` |
|
|
147
|
+
| `--mode` | `--mode` | Execution mode (`grid`, `single`, `record`, `scan-only`) | `grid` |
|
|
148
|
+
| `--grid-cols` | `--grid-cols` | Number of columns in PiP grid preview | `3` |
|
|
149
|
+
| `--rec-duration`| `--rec-duration`| Duration in seconds for stream recording | `30` |
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Step-by-Step PyPI Publishing Guide
|
|
154
|
+
|
|
155
|
+
Follow these steps to publish `rtspkit` to the Python Package Index (PyPI):
|
|
156
|
+
|
|
157
|
+
### 1. Prerequisites
|
|
158
|
+
Ensure you have `build` and `twine` installed:
|
|
159
|
+
```bash
|
|
160
|
+
pip install --upgrade build twine
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### 2. Create a PyPI Account & API Token
|
|
164
|
+
1. Register an account on [PyPI (pypi.org)](https://pypi.org/account/register/).
|
|
165
|
+
2. Go to **Account Settings** -> **API Tokens** and generate a new API token with `Entire account` or `Project` scope.
|
|
166
|
+
3. Copy your generated token (starts with `pypi-`).
|
|
167
|
+
|
|
168
|
+
### 3. Build Source & Wheel Packages
|
|
169
|
+
Navigate into the `rtspkit` root directory containing `pyproject.toml` and run:
|
|
170
|
+
```bash
|
|
171
|
+
python -m build
|
|
172
|
+
```
|
|
173
|
+
*(Or legacy build command: `python setup.py sdist bdist_wheel`)*
|
|
174
|
+
|
|
175
|
+
This creates distribution files in the `dist/` directory:
|
|
176
|
+
- `dist/rtspkit-1.0.0-py3-none-any.whl`
|
|
177
|
+
- `dist/rtspkit-1.0.0.tar.gz`
|
|
178
|
+
|
|
179
|
+
### 4. Verify Package Build Integrity
|
|
180
|
+
Run `twine check` to ensure your README, metadata, and license format correctly:
|
|
181
|
+
```bash
|
|
182
|
+
twine check dist/*
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### 5. Test Upload to TestPyPI (Optional but Recommended)
|
|
186
|
+
Publish to TestPyPI first to verify package rendering:
|
|
187
|
+
```bash
|
|
188
|
+
twine upload --repository testpypi dist/*
|
|
189
|
+
```
|
|
190
|
+
- **Username**: `__token__`
|
|
191
|
+
- **Password**: `pypi-your-testpypi-api-token`
|
|
192
|
+
|
|
193
|
+
Test installation from TestPyPI:
|
|
194
|
+
```bash
|
|
195
|
+
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple rtspkit
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
### 6. Publish Package to Official PyPI
|
|
199
|
+
Publish your package live on PyPI:
|
|
200
|
+
```bash
|
|
201
|
+
twine upload dist/*
|
|
202
|
+
```
|
|
203
|
+
- **Username**: `__token__`
|
|
204
|
+
- **Password**: `pypi-your-live-pypi-api-token`
|
|
205
|
+
|
|
206
|
+
Once complete, your package will be live on PyPI and installable globally via:
|
|
207
|
+
```bash
|
|
208
|
+
pip install rtspkit
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## License
|
|
214
|
+
|
|
215
|
+
This project is licensed under the [MIT License](LICENSE).
|
rtspkit-1.0.0/README.md
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# RTSP Kit (`rtspkit`)
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/rtspkit/)
|
|
4
|
+
[](https://pypi.org/project/rtspkit/)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
7
|
+
**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.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Key Features
|
|
12
|
+
|
|
13
|
+
- **Parallel Port & Stream Validation**: High-concurrency network socket scan and RTSP stream verification.
|
|
14
|
+
- **RTSP Subpath Probing**: Automatic route scanning for popular IP camera routes (`/h264`, `/live/ch0`, `/stream1`, `/onvif1`, etc.).
|
|
15
|
+
- **Credential Brute-Forcing**: Custom credential pair testing and dictionary attack modes for locked camera streams.
|
|
16
|
+
- **Non-Blocking Multi-Camera Grid View**: Real-time Picture-in-Picture (PiP) layout renderer powered by background frame readers.
|
|
17
|
+
- **Stream Recording Mode**: Timed or manual on-demand recording of live RTSP streams to `.mp4` video files.
|
|
18
|
+
- **VLC Integration**: Launch streams directly inside external VLC Media Player.
|
|
19
|
+
- **Metadata Extraction & Export**: Automatically logs video resolution and FPS metadata to JSON, CSV, or TXT formats.
|
|
20
|
+
- **CLI & Python API**: Fully operational as both a command-line tool (`rtspkit`) and a Python library module (`import rtspkit`).
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
Install `rtspkit` directly from PyPI using `pip`:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install rtspkit
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## Quickstart & Usage
|
|
35
|
+
|
|
36
|
+
### 1. Command Line Interface (CLI)
|
|
37
|
+
|
|
38
|
+
#### Interactive Mode (Wizard)
|
|
39
|
+
Run `rtspkit` without positional parameters to open the step-by-step interactive setup wizard:
|
|
40
|
+
```bash
|
|
41
|
+
rtspkit
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
#### Basic Subnet Scan & Multi-Camera Grid View
|
|
45
|
+
Scan a `/24` subnet and launch a 3-column PiP video grid:
|
|
46
|
+
```bash
|
|
47
|
+
rtspkit 192.168.1.0/24
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
#### Path Probing & Dictionary Brute-Force
|
|
51
|
+
Probe common RTSP paths and execute credential brute-forcing:
|
|
52
|
+
```bash
|
|
53
|
+
rtspkit 192.168.1.0/24 --probe-paths -b -U usernames.txt -P passwords.txt -o results.json
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### Single Camera Inspector Mode
|
|
57
|
+
Interactive stream reader (`n` = next, `p` = previous, `s` = screenshot, `r` = record, `q` = quit):
|
|
58
|
+
```bash
|
|
59
|
+
rtspkit 192.168.1.0/24 --mode single
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
#### Record Live Streams
|
|
63
|
+
Record active streams for 30 seconds:
|
|
64
|
+
```bash
|
|
65
|
+
rtspkit 192.168.1.50 --mode record --rec-duration 30
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### 2. Programmatic Python API
|
|
71
|
+
|
|
72
|
+
You can also import and use `rtspkit` inside your own Python projects:
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
from rtspkit import RTSPScanner, GridRenderer, SingleStreamViewer
|
|
76
|
+
|
|
77
|
+
# Initialize scanner
|
|
78
|
+
scanner = RTSPScanner(port=554, timeout=3.0, threads=50)
|
|
79
|
+
|
|
80
|
+
# Scan target IP network or host list
|
|
81
|
+
cameras = scanner.run_scan(targets=["192.168.1.100"], paths=["", "/live/ch0"])
|
|
82
|
+
|
|
83
|
+
for cam in cameras:
|
|
84
|
+
if cam.working:
|
|
85
|
+
print(f"Found camera at {cam.ip}: {cam.url} ({cam.width}x{cam.height})")
|
|
86
|
+
|
|
87
|
+
# Launch PiP Grid view if cameras found
|
|
88
|
+
working = [c for c in cameras if c.working]
|
|
89
|
+
if working:
|
|
90
|
+
grid = GridRenderer(working, cols=3)
|
|
91
|
+
grid.start_preview()
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Command Line Flags Reference
|
|
97
|
+
|
|
98
|
+
| Flag | Long Flag | Description | Default |
|
|
99
|
+
| --- | --- | --- | --- |
|
|
100
|
+
| `target` | Positional | Target IP, CIDR subnet (`192.168.1.0/24`), range (`192.168.1.1-50`), or target file | Interactive |
|
|
101
|
+
| `-f` | `--targets-file` | File containing batch list of target IPs/subnets | `None` |
|
|
102
|
+
| `-p` | `--port` | Target RTSP TCP port | `554` |
|
|
103
|
+
| `-t` | `--threads` | Number of concurrent worker threads | `50` |
|
|
104
|
+
| `--timeout` | `--timeout` | Network socket and stream timeout (seconds) | `3.0` |
|
|
105
|
+
| `-c` | `--credentials` | Single `user:pass` authentication pair | `None` |
|
|
106
|
+
| `-b` | `--brute` | Enable dictionary brute-forcing for LOCKED streams | `False` |
|
|
107
|
+
| `-U` | `--user-file` | Path to custom usernames list | Built-in list |
|
|
108
|
+
| `-P` | `--pass-file` | Path to custom passwords list | Built-in list |
|
|
109
|
+
| `--probe-paths` | `--probe-paths` | Probe popular RTSP camera paths (`/h264`, `/live/ch0`, etc.) | `False` |
|
|
110
|
+
| `-o` | `--output` | Save results to file (`.json`, `.csv`, `.txt`) | `None` |
|
|
111
|
+
| `--mode` | `--mode` | Execution mode (`grid`, `single`, `record`, `scan-only`) | `grid` |
|
|
112
|
+
| `--grid-cols` | `--grid-cols` | Number of columns in PiP grid preview | `3` |
|
|
113
|
+
| `--rec-duration`| `--rec-duration`| Duration in seconds for stream recording | `30` |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Step-by-Step PyPI Publishing Guide
|
|
118
|
+
|
|
119
|
+
Follow these steps to publish `rtspkit` to the Python Package Index (PyPI):
|
|
120
|
+
|
|
121
|
+
### 1. Prerequisites
|
|
122
|
+
Ensure you have `build` and `twine` installed:
|
|
123
|
+
```bash
|
|
124
|
+
pip install --upgrade build twine
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### 2. Create a PyPI Account & API Token
|
|
128
|
+
1. Register an account on [PyPI (pypi.org)](https://pypi.org/account/register/).
|
|
129
|
+
2. Go to **Account Settings** -> **API Tokens** and generate a new API token with `Entire account` or `Project` scope.
|
|
130
|
+
3. Copy your generated token (starts with `pypi-`).
|
|
131
|
+
|
|
132
|
+
### 3. Build Source & Wheel Packages
|
|
133
|
+
Navigate into the `rtspkit` root directory containing `pyproject.toml` and run:
|
|
134
|
+
```bash
|
|
135
|
+
python -m build
|
|
136
|
+
```
|
|
137
|
+
*(Or legacy build command: `python setup.py sdist bdist_wheel`)*
|
|
138
|
+
|
|
139
|
+
This creates distribution files in the `dist/` directory:
|
|
140
|
+
- `dist/rtspkit-1.0.0-py3-none-any.whl`
|
|
141
|
+
- `dist/rtspkit-1.0.0.tar.gz`
|
|
142
|
+
|
|
143
|
+
### 4. Verify Package Build Integrity
|
|
144
|
+
Run `twine check` to ensure your README, metadata, and license format correctly:
|
|
145
|
+
```bash
|
|
146
|
+
twine check dist/*
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### 5. Test Upload to TestPyPI (Optional but Recommended)
|
|
150
|
+
Publish to TestPyPI first to verify package rendering:
|
|
151
|
+
```bash
|
|
152
|
+
twine upload --repository testpypi dist/*
|
|
153
|
+
```
|
|
154
|
+
- **Username**: `__token__`
|
|
155
|
+
- **Password**: `pypi-your-testpypi-api-token`
|
|
156
|
+
|
|
157
|
+
Test installation from TestPyPI:
|
|
158
|
+
```bash
|
|
159
|
+
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple rtspkit
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
### 6. Publish Package to Official PyPI
|
|
163
|
+
Publish your package live on PyPI:
|
|
164
|
+
```bash
|
|
165
|
+
twine upload dist/*
|
|
166
|
+
```
|
|
167
|
+
- **Username**: `__token__`
|
|
168
|
+
- **Password**: `pypi-your-live-pypi-api-token`
|
|
169
|
+
|
|
170
|
+
Once complete, your package will be live on PyPI and installable globally via:
|
|
171
|
+
```bash
|
|
172
|
+
pip install rtspkit
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## License
|
|
178
|
+
|
|
179
|
+
This project is licensed under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "rtspkit"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "RTSPKit is a powerful vulnerable CCTV & WebCam finder, stream validator, and exposer."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
authors = [
|
|
11
|
+
{ name = "Babar Ali Jamali", email = "babar994@gmail.com" }
|
|
12
|
+
]
|
|
13
|
+
license = "MIT"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 5 - Production/Stable",
|
|
16
|
+
"Intended Audience :: Developers",
|
|
17
|
+
"Intended Audience :: System Administrators",
|
|
18
|
+
"Topic :: Multimedia :: Video :: Display",
|
|
19
|
+
"Topic :: Security",
|
|
20
|
+
"Topic :: System :: Networking :: Monitoring",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.8",
|
|
23
|
+
"Programming Language :: Python :: 3.9",
|
|
24
|
+
"Programming Language :: Python :: 3.10",
|
|
25
|
+
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
28
|
+
"Programming Language :: Python :: 3.14",
|
|
29
|
+
]
|
|
30
|
+
keywords = ["rtsp", "camera", "ip-camera", "scanner", "opencv", "stream-viewer", "bruteforce", "pip-grid"]
|
|
31
|
+
dependencies = [
|
|
32
|
+
"opencv-python>=4.5.0",
|
|
33
|
+
"numpy>=1.20.0",
|
|
34
|
+
"colorama>=0.4.0",
|
|
35
|
+
]
|
|
36
|
+
requires-python = ">=3.8"
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Homepage = "https://github.com/babaralijamali/rtspkit"
|
|
40
|
+
Repository = "https://github.com/babaralijamali/rtspkit"
|
|
41
|
+
|
|
42
|
+
[project.scripts]
|
|
43
|
+
rtspkit = "rtspkit.rtspkit:main"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
RTSP Kit (rtspkit)
|
|
3
|
+
------------------
|
|
4
|
+
Enhanced RTSP Scanner, Stream Validator, Credential Brute-Forcer, and Multi-Camera Viewer.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from .rtspkit import (
|
|
8
|
+
CameraResult,
|
|
9
|
+
RTSPScanner,
|
|
10
|
+
AsyncFrameReader,
|
|
11
|
+
GridRenderer,
|
|
12
|
+
SingleStreamViewer,
|
|
13
|
+
record_stream,
|
|
14
|
+
main,
|
|
15
|
+
DEFAULT_USERNAMES,
|
|
16
|
+
DEFAULT_PASSWORDS,
|
|
17
|
+
DEFAULT_RTSP_PATHS,
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
__version__ = "1.0.0"
|
|
21
|
+
__author__ = "Developer"
|
|
22
|
+
|
|
23
|
+
__all__ = [
|
|
24
|
+
"CameraResult",
|
|
25
|
+
"RTSPScanner",
|
|
26
|
+
"AsyncFrameReader",
|
|
27
|
+
"GridRenderer",
|
|
28
|
+
"SingleStreamViewer",
|
|
29
|
+
"record_stream",
|
|
30
|
+
"main",
|
|
31
|
+
"DEFAULT_USERNAMES",
|
|
32
|
+
"DEFAULT_PASSWORDS",
|
|
33
|
+
"DEFAULT_RTSP_PATHS",
|
|
34
|
+
"__version__",
|
|
35
|
+
]
|