Giter VIP home page Giter VIP logo

netgrave's Introduction

Netgrave

A tool for retrieving login credentials from Netwave IP cameras using a memory dump vulnerability (CVE-2018-17240). This project was inspired by expcamera and offers performance and efficiency improvements. This tool works for all platforms as it does not use any Linux CLI tools through shell commands like expcamera does.

CVE-2018-17240

On Linux systems, the /proc/kcore file path mirrors the physical memory of the system, allowing access to its contents for analysis. Some Netwave IP cameras expose this path publicly via its web server, allowing unauthenticated users to retrieve the memory dump of the device, exposing sensitive information such as login credentials.


This tool will first attempt to find the device ID in the memory dump. Once this has been found, it likely means that the credentials are nearby and will begin searching for them.

Host Retrieval Options

This tool supports four different ways of retrieving hosts to check for the vulnerability.

--host

The first way is to specify a single host using the --host option. This option can be specified multiple times to check multiple hosts. The hosts should be in the ip:port format.


--file

The second way is to specify a file containing a list of hosts in the ip:port format using the --file option.


--censys

The third way is to retrieve hosts from the Censys API using the --censys option. This option requires the CENSYS_API_ID and CENSYS_API_SECRET environment variables to be set.


--zoomeye

The fourth way is to retrieve hosts from the ZoomEye API using the --zoomeye option. This option requires the ZOOMEYE_API_KEY environment variable to be set.

Installation

$ pip install -r requirements.txt

Usage

Usage: main.py [-h] [--host HOST | -f FILE | --censys | --zoomeye] [-n NUMBER] [-c CONCURRENT] [-t TIMEOUT] [-o OUTPUT]

A tool for retrieving login credentials from Netwave IP cameras using a memory dump vulnerability (CVE-2018-17240)

Options:
  -h, --help            show this help message and exit
  --host HOST           A host to check, can be specified multiple times
  -f, --file FILE       A file containing the hosts to check
  --censys              Retrieve hosts from the Censys API using the API ID and secret specified with the CENSYS_API_ID and CENSYS_API_SECRET environment variables
  --zoomeye             Retrieve hosts from the ZoomEye API using the API key specified with the ZOOMEYE_API_KEY environment variable
  -n, --number NUMBER   The number of hosts to retrieve from Censys or ZoomEye, by default 500
  -c, --concurrent CONCURRENT
                        The number of hosts to check concurrently, by default 50
  -t, --timeout TIMEOUT
                        The timeout in seconds for retrieving the credentials from the memory dump, by default 300
  -o, --output OUTPUT   The file to write the credentials to, by default credentials.txt

Disclaimer

This tool is for educational purposes only. The contributors of this project will not be held liable for any damages or legal issues that may arise from the use of this tool. Use at your own risk.

netgrave's People

Contributors

xewdy444 avatar dependabot[bot] avatar deepsource-autofix[bot] avatar deepsource-io[bot] 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.