CamLib class in lib/camlib.py provides brand-specific configurations for optimal camera access.
Overview
Each camera brand has:- Default usernames: Common administrative accounts for the brand
- RTSP paths: Known streaming endpoint paths for accessing camera feeds
Supported Brands
Hikvision
Hikvision
Default Users
adminrootsupervisor
Hikvision is one of the world’s largest camera manufacturers. The
Streaming/Channels/101 and 102 paths are commonly used for main and sub-streams.Dahua
Dahua
Default Users
rootsystem
Dahua cameras use the
cam/realmonitor endpoint with channel and subtype parameters to specify stream quality.Uniview
Uniview
Default Users
admin
Uniview cameras typically use the
ucast path for unicast streaming.Axis
Axis
Default Users
rootadmin
Axis cameras use distinctive
axis-media and axis-cgi paths for their streaming endpoints.Sony
Sony
Default Users
admin
Sony cameras use the
SNC/media path structure for their RTSP streams.Vivotek
Vivotek
Default Users
admin
Vivotek cameras support both main and sub-stream access through
videoMain and videoSub paths.TVT
TVT
Default Users
admin
Reolink
Reolink
Default Users
admin
Reolink cameras use the
h264Preview naming convention for main and sub-streams.Milesight
Milesight
Default Users
admin
Milesight uses a similar path structure to Hikvision cameras.
Brand Configuration Matrix
| Brand | Default Users | Path Count | Primary Path Pattern |
|---|---|---|---|
| Hikvision | admin, root, supervisor | 6 | Streaming/Channels/ |
| Dahua | root, system | 6 | cam/realmonitor? |
| Uniview | admin | 6 | ucast/ |
| Axis | root, admin | 4 | axis-media/ |
| Sony | admin | 3 | SNC/media/ |
| Vivotek | admin | 4 | videoMain/Sub |
| TVT | admin | 19 | Mixed (OEM paths) |
| Reolink | admin | 3 | h264Preview_ |
| Milesight | admin | 5 | Streaming/Channels/ |
Implementation Reference
Each brand configuration is implemented as a method in theCamLib class (lib/camlib.py:15-127). The methods return a tuple of (users, paths) that BloodCat uses during brute-force operations.
These configurations are based on manufacturer documentation and real-world camera deployments. BloodCat automatically selects the appropriate configuration based on RTSP banner detection.