How s0ulle33/asleep_scanner works
Asleep Scanner is a command-line Dahua DVR discovery and credential-testing tool. Its documented workflow takes IP ranges or supplied hosts, optionally uses Masscan to find devices, tries configured credential combinations against Dahua’s port protocol, and can capture snapshots and export results. Country-based range selection, SMART PSS XML, dead-camera output, and Telegram posting are additional capabilities. The source index and excerpts support the main module relationships; some orchestration details and optional integrations are documented but not fully shown.
Main entry points: asleep.py CLI workflow · brute.py Brute workers · snapshot.py Snapshot workers · bot.py Telegram posting
Components 16
Target Discovery
- CLI workflow
asleep.py - Country ranges
geolocation.py - Masscan
- Host parsing
utils.py
Device Access
- Brute workers
brute.py - Dahua protocol
dahua.py
Results and Media
- Snapshot workers
snapshot.py - Image filtering
snapshot.py - CSV and dead-camera output
export.py - SMART PSS XML
export.py - Telegram posting
bot.py
Configuration
- Credential setup
utils.py - Runtime configuration
config.py - Terminal styling
paint.py
Other components
- Operator
- Telegram
Connections 18
- Operator → CLI workflow: runs
README.md - CLI workflow → Country ranges: selects ranges
asleep.py - CLI workflow → Masscan: starts scan
README.md - Masscan → CLI workflow: provides results
README.md - CLI workflow → Host parsing: parses hosts
asleep.py - CLI workflow → Credential setup: loads credentials
asleep.py - CLI workflow → Brute workers: dispatches hosts
asleep.py - Brute workers → Dahua protocol: authenticates
brute.py - Brute workers → Snapshot workers: queues devices
brute.py - Snapshot workers → Dahua protocol: requests images
snapshot.py - Snapshot workers → Image filtering: filters images
snapshot.py - Image filtering → Terminal styling: formats status
snapshot.py - CLI workflow → CSV and dead-camera output: exports results
asleep.py - CLI workflow → SMART PSS XML: exports XML
asleep.py - CLI workflow → Telegram posting: may start poster
asleep.py - Telegram posting → Telegram: sends photos
bot.py - CLI workflow → Runtime configuration: configures runtime
asleep.py - Brute workers → Runtime configuration: reads credentials
brute.py