Netwave IPカメラのメモリダンプ脆弱性(CVE-2018-17240)を利用してログイン認証情報を取得するツールです。このプロジェクトはexpcameraに触発され、パフォーマンスと効率の改善を提供します。このツールは、expcameraのようにシェルコマンドを介してLinux CLIツールを使用しないため、すべてのプラットフォームで動作します。
Linuxシステムでは、/proc/kcoreはシステムの物理メモリへの直接マッピングを提供する仮想ファイルであり、カーネル全体の仮想メモリ空間への読み取りアクセスを許可します。一部のNetwave IPカメラは、このファイルをWebサーバーを介して公開し、認証されていないユーザーがデバイスのメモリダンプを取得できるようにし、ログイン認証情報などの機密情報を露出させます。
このツールはまず、メモリダンプ内でデバイスIDを見つけようとします。これが見つかると、認証情報が近くにある可能性が高く、それらの検索を開始します。
このツールは、脆弱性をチェックするホストを指定する2つの方法をサポートしています。ホストはip:port形式でなければなりません。
| 引数 | 説明 |
|---|---|
--host | チェックするホスト、複数回指定可能 |
--file | チェックするホストのリストを含むファイル |
このツールは、Censys、Shodan、ZoomEyeからホストを取得して脆弱性をチェックすることをサポートしています。
$ pip install -r requirements.txt
Usage: main.py [-h] (--host HOST | -f FILE | --censys | --shodan | --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
--shodan Retrieve hosts from the Shodan API using the API key specified with the SHODAN_API_KEY environment variable
--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 the IoT search engine, by default 100
-c, --concurrent CONCURRENT
The number of hosts to check concurrently, by default 25
-t, --timeout TIMEOUT
The timeout in seconds for retrieving the credentials from the memory dump of each host, by default 300
-o, --output OUTPUT The file to write the credentials to, by default credentials.txt
このツールは教育目的のみで使用されます。このプロジェクトの貢献者は、このツールの使用によって生じる可能性のある損害や法的問題について一切の責任を負いません。自己責任で使用してください。
| IoT検索エンジン | 引数 | 必要な環境変数 |
|---|
| Censys | --censys | CENSYS_API_ID, CENSYS_API_SECRET |
| Shodan | --shodan | SHODAN_API_KEY |
| ZoomEye | --zoomeye | ZOOMEYE_API_KEY |