Skip to content
프로젝트

SinonApp/cansleep has 104 GitHub stars and 15 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-14 02:10 UTC. Last push 2025-03-24.

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

소개

The program for scanning and testing city cameras (DVR, RTSP, Hikvision) is a tool developed exclusively for educational purposes to analyze and check the quality of video cameras and video systems at the urban infrastructure level.

학습

README.md

Original

Cansleep

!!!The project is not abandoned, as soon as possible we will update and improve it!!!

Description

Cansleep is a software application developed exclusively for educational purposes. It is designed to analyze and evaluate the functionality and security of urban surveillance cameras, digital video recorders (DVRs), and Real-Time Streaming Protocol (RTSP) video streams. This tool serves as an educational resource for students, researchers, and security professionals interested in understanding the complexities of video surveillance infrastructure.

Dependencies

For the program to work, you need to install Nmap, Massan, Smap, Python3.8 or higher

Warning masscan on windows: Transmit rate (IMPORTANT!!)

Installation Linux

# Nmap install
sudo apt install nmap -y

# Masscan install
sudo apt install git make gcc -y \
  && git clone https://github.com/robertdavidgraham/masscan \
  && cd masscan \
  && make \
  && make install
# Or if you use kali linux
sudo apt install masscan -y

# Smap install
sudo apt install golang -y \
  && go install -v github.com/s0md3v/smap/cmd/smap@latest

# Cansleep
git clone https://github.com/SinonApp/cansleep.git \
  && cd cansleep \
  && pip3 install -r requirements.txt

Installation Windows

You need install Nmap

# Cansleep
git clone https://github.com/SinonApp/cansleep.git
cd cansleep
pip3 install -r requirements.txt

Usage

To use the cansleep program, run the following command:

sudo python3 cansleep.py [-h] [--target TARGET] [-l LOAD] [-s SCANNER] [-p PORTS] -m MODE [--combo COMBO] [-t THREADS] [-d]

Options

The cansleep program accepts the following options:

-h, --help:                    Displays the help message and exits.
--target TARGET:               Specifies the IP address, CIDR range, or file to scan.
-l LOAD, --load LOAD:          Loads a file with a report.txt for skip scanning.
-s SCANNER, --scanner SCANNER: Chooses the scanning tool to use (smap, nmap, or masscan).
-p PORTS, --ports PORTS:       Specifies the ports to scan.
-m MODE, --mode MODE:          Specifies the attack mode to use (all, rtsp, dahua, or hikka).
--combo COMBO:                 Specifies the combo of usernames and passwords to use for brute force attacks.
-t THREADS, --threads THREADS: Specifies the number of threads to use for brute force attacks.
-d, --debug:                   Enables debug logging.

Examples

To scan a single IP address using nmap and the all attack mode:

sudo python3 cansleep.py --target 192.168.1.1 -s nmap -m all

To scan a CIDR range using masscan and the rtsp attack mode:

sudo python3 cansleep.py --target 192.168.1.0/24 -s masscan -m rtsp

To scan a file containing a list of IP addresses using smap and the dahua attack mode:

sudo python3 cansleep.py --target ips.txt -s smap -m dahua

To perform a brute force attack using a combo of usernames and passwords:

sudo python3 cansleep.py --target 192.168.1.1 --combo usernames.txt:passwords.txt -m all -t 10

관련 프로젝트 살펴보기