Giter Site home page Giter Site logo

alarh-camera-scanner's Introduction

Build Status version version

Camera Scanner

Description

Simple camera vulnerability scanner.

  • Finds video streams on open port 554 over specified IP ranges;
  • Checks and finds passwords using CVE-2013-4975;
  • Realizing brute-force attack through RTSP protocol.

Build

Execute command mvn package.

Usage

The application scans the address range to check the specified port (554 by default) for availability. After receiving a list of verified addresses, the password strength is checked using a number of methods (including password guessing for the stream and checking for vulnerabilities). If the password is brute-forced, the application tries to fetch the frame from the vulnerable device (ffmpeg must be installed).

Usage example:

  • java -jar camera-scanner.jar -source:range.txt -th:10 -p:8000 -passwords:pass.txt -sf
    scanning and brute ranges, thread = 10, checking port = 8000, save screen, range.txt ranges list, pass.txt plain passwords list.
  • java -jar camera-scanner.jar -source:range.txt -w:200 -passwords:pass.txt
    scanning and brute ranges, wait socket connect 200 instead 500 ms, range.txt ranges list, pass.txt plain passwords list.
  • java -jar camera-scanner.jar -nc -source:list.txt -passwords:pass.txt -sf
    no scanning, only brute, save screen, list.txt plain ip list, pass.txt plain passwords list.
  • java -jar camera-scanner.jar -nb -source:range.txt
    no brute, only scanning by default port, range.txt ranges list.

Flags

  • Add -p flag for set scanning port (554 by default).
  • Add -th flag for set parallel threads (10 by default).
  • Add -t flag for set time of waiting host response (500 ms by default).
  • Add -w flag for set socket waiting timeout (2000 ms by default).
  • Add -uc flag allows attempts to connect to untrusted hosts.
  • Add -sf flag enables saving screenshots (experimental, need installed FFmpeg).
  • Add -nc flag for start without checking port (only brute, source must be plain ip list).
  • Add -nb flag for disable brute.

Results

  • All results will be saved in the path /results/....
  • All screenshots will be saved in the path /results/screen/....
  • All common logs will be saved in the path /logs/out.log.
  • All ffmpeg logs will be saved in the path /logs/ffmpeg.log.
  • Statistic report about scanning results will be saved in the path /results/report.log.

Bruted data presents as:

IP address Path Login Password Name
12.44.3.103 11 admin 12345 <brute>
12.44.3.105 11 admin Wre%6ss_ <cve>

Save stream

  • An example command for receiving a video stream:

ffmpeg -i rtsp://${login}:${password}@${host}/Streaming/Channels/101 -acodec copy -vcodec copy /home/user/video.mp4.

Constraints

If you need to process many of ranges, it is recommended to run them sequentially or on several, different application instances.

alarh-camera-scanner's People

Contributors

inkarnadin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.