
バックグラウンドで実行できるスクリプト!
バックグラウンドで実行できるスクリプト!

このスクリプトの主な目的は、毎回実行される列挙と偵察のプロセスを自動化し、代わりに実際のペネトレーションテストに集中できるようにすることです。
これにより、次の2つが保証されます:
最初のポートが '5〜10秒以内' に見つかったら、それらのポートを手動で調査し始め、残りはこちらからの操作を一切行わずにバックグラウンドで実行させることができます。
注:これは偵察ツールであり、いかなる悪用も行いません。
reconオプションを使用すると、nmapAutomatorは見つかった各ポートに対して最適な偵察ツールを自動的に推奨して実行します。
推奨されたツールがマシンにない場合、nmapAutomatorはそのインストール方法を提案します。
nmapAutomatorは100% POSIX互換であるため、任意のshシェル、および任意のUnixベースのマシン(10年前のルーターでも!)で実行でき、横移動の偵察に最適です。
リモートマシンでnmapAutomatorを実行したい場合は、このリンクから静的nmapバイナリをダウンロードするか、static-getを使用して、リモートマシンに転送してください。その後、-s/--static-nmapを使用して静的nmapバイナリのパスを指定できます。
-r/--remoteフラグを使用すると、nmapAutomatorはリモートモードで実行されます。このモードは、外部ツールに依存せず、POSIXシェルコマンドのみを使用して実行するように設計されています。
リモートモードはまだ開発中です。現在、-rで動作するスキャンは以下のみです:
nmapAutomatorは、各スキャンタイプの出力を出力ディレクトリ内の個別のファイルに保存します。
スクリプト全体の出力も保存され、less -r outputDir/nmapAutomator_host_type.txtで表示するか、単にcatで表示できます。
ffuf、次のようにインストールできます:
sudo apt update
sudo apt install ffuf -y
または、Gobuster 'v3.0以上'、次のようにインストールできます:
sudo apt update
sudo apt install gobuster -y
スクリプト内で使用されるその他の偵察ツールは次のとおりです:
これらのほとんどは、Parrot OS と Kali Linux にデフォルトでインストールされているはずです。
推奨された偵察ツールが不足している場合、それらは自動的に省略され、ユーザーに通知されます。
git clone https://github.com/21y4d/nmapAutomator.git
sudo ln -s $(pwd)/nmapAutomator/nmapAutomator.sh /usr/local/bin/
./nmapAutomator.sh -h
Usage: nmapAutomator.sh -H/--host <TARGET-IP> -t/--type <TYPE>
Optional: [-r/--remote <REMOTE MODE>] [-d/--dns <DNS SERVER>] [-o/--output <OUTPUT DIRECTORY>] [-s/--static-nmap <STATIC NMAP PATH>]
Scan Types:
Network : Shows all live hosts in the host's network (~15 seconds)
Port : Shows all open ports (~15 seconds)
Script : Runs a script scan on found ports (~5 minutes)
Full : Runs a full range port scan, then runs a thorough scan on new ports (~5-10 minutes)
UDP : Runs a UDP scan "requires sudo" (~5 minutes)
Vulns : Runs CVE scan and nmap Vulns scan on all found ports (~5-15 minutes)
Recon : Suggests recon commands, then prompts to automatically run them
All : Runs all the scans (~20-30 minutes)
スキャンの例:
./nmapAutomator.sh --host 10.1.1.1 --type All
./nmapAutomator.sh -H 10.1.1.1 -t Basic
./nmapAutomator.sh -H academy.htb -t Recon -d 1.1.1.1
./nmapAutomator.sh -H 10.10.10.10 -t network -s ./nmap
プルリクエストをお気軽にお送りください :)
プルリクエストの際は、これらのコントリビューションガイドラインに従うようにしてください。
| nmap Vulners | sslscan | nikto | joomscan | wpscan |
|---|
| droopescan | smbmap | enum4linux | dnsrecon | odat |
| smtp-user-enum | snmp-check | snmpwalk | ldapsearch |