
Cameradar に触発されました
.txt ファイル:見つかった各ストリームを新しい行に.html ファイル:各ストリームのスクリーンショット付きresult.txt: 各ターゲットが新しい行に記載されています。VLCにインポートするには、拡張子を .m3u に変更してVLCで開きますindex.html: スクリーンショットをクリックしてリンクをコピーしますpython (> 3.6)avPillowrichpip またはお好みのPyPiパッケージマネージャでインストールします。
pip install rtspbrute
USAGE
$ rtspbrute -t TARGETS [-p PORTS [PORTS ...]] [-r ROUTES] [-c CREDENTIALS]
[-ct N] [-bt N] [-st N] [-T TIMEOUT] [-d] [-h]
ARGUMENTS
-h, --help show this help message and exit
-t, --targets TARGETS the targets on which to scan for open RTSP streams
-p, --ports PORTS [PORTS ...] the ports on which to search for RTSP streams
-r, --routes ROUTES the path on which to load a custom routes
-c, --credentials CREDENTIALS the path on which to load a custom credentials
-ct, --check-threads N the number of threads to brute-force the routes
-bt, --brute-threads N the number of threads to brute-force the credentials
-st, --screenshot-threads N the number of threads to screenshot the streams
-T, --timeout TIMEOUT the timeout to use for sockets
-d, --debug enable the debug logs
EXAMPLES
$ rtspbrute -h
$ rtspbrute -t hosts.txt -p 554 5554 8554 -d
$ rtspbrute -t ips.txt -r routes.txt -c combinations.txt
$ rtspbrute -t targets.txt -st 10 -T 10
default_value):0.0.0.0
192.168.100.1-192.168.254.1
192.17.0.0/16
554): カスタムポートを設定します。例: -p 554 5554 8554routes.txt): ルートファイルへのカスタムパスを設定します。各ルートは / で始まり、別々の行に記述する必要があります。例:/1
/11
/h264
credentials.txt): 認証情報ファイルへのカスタムパスを設定します。各組み合わせは : を含み、別々の行に記述する必要があります。例:admin:admin
user:user
500): ルートをブルートフォースするスレッド数のカスタム値を設定します200): 認証情報をブルートフォースするスレッド数のカスタム値を設定します20): ストリームのスクリーンショットを取得するスレッド数のカスタム値を設定します。値が小さいほどスクリーンショットの成功率が高まります。スレッドが多すぎるとPyAVがエラーを投げ、ターゲットに接続できなくなります。2): ソケット接続のタイムアウト値をカスタム設定しますFalse): debug.log ファイルにデバッグログを出力します