Nmapautomator

A script that you can run in the background!
Alternatives To Nmapautomator
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Masscan21,110
3 days ago1February 27, 2018386otherC
TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
Rustscan10,022
12 days ago17April 27, 2022127gpl-3.0Rust
🤖 The Modern Port Scanner 🤖
Sn1per6,492
4 days ago6otherShell
Attack Surface Management Platform | Sn1perSecurity LLC
Naabu3,37815 days ago30July 31, 202231mitGo
A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests
Cameradar3,047
8 months ago7November 08, 202122mitGo
Cameradar hacks its way into RTSP videosurveillance cameras
Nmapautomator1,312
2 years ago4mitShell
A script that you can run in the background!
Androidnetworktools1,247
2 months ago29apache-2.0Java
Set of useful android network tools
Atscan1,178
2 years agomitPerl
Advanced dork Search & Mass Exploit Scanner
Ladongo1,177
2 months ago2mitGo
LadonGO 4.2 Pentest Scanner framework 全平台Go开源内网渗透扫描器框架,Windows/Linux/Mac内网渗透,使用它可轻松一键批量探测C段、B段、A段存活主机、高危漏洞检测MS17010、SmbGhost,远程执行SSH/Winrm,密码爆破SMB/SSH/FTP/Mysql/Mssql/Oracle/Winrm/HttpBasic/Redis,端口扫描服务识别PortScan指纹识别/HttpBanner/HttpTitle/TcpBanner/Weblogic/Oxid多网卡主机,端口扫描服务识别PortScan。
Static Code Scan1,070
6 years agootherJavaScript
Run this quick static code scan on any URL to check for out-of-date libraries, layout issues and accessibility.
Alternatives To Nmapautomator
Select To Compare


Alternative Project Comparisons
Readme

nmapAutomator

A script you can run in the background!

nmapAutomator

Summary

The main goal for this script is to automate the process of enumeration & recon that is run every time, and instead focus our attention on real pentesting.

This will ensure two things:

  1. Automate nmap scans.
  2. Always have some recon running in the background.

Once initial ports are found 'in 5-10 seconds', we can start manually looking into those ports, and let the rest run in the background with no interaction from our side whatsoever.

Features

Scans

  1. Network : Shows all live hosts in the host's network (~15 seconds)
  2. Port : Shows all open ports (~15 seconds)
  3. Script : Runs a script scan on found ports (~5 minutes)
  4. Full : Runs a full range port scan, then runs a thorough scan on new ports (~5-10 minutes)
  5. UDP : Runs a UDP scan "requires sudo" (~5 minutes)
  6. Vulns : Runs CVE scan and nmap Vulns scan on all found ports (~5-15 minutes)
  7. Recon : Suggests recon commands, then prompts to automatically run them
  8. All : Runs all the scans (~20-30 minutes)

Note: This is a reconnaissance tool, and it does not perform any exploitation.

Automatic Recon

With the recon option, nmapAutomator will automatically recommend and run the best recon tools for each found port.
If a recommended tool is missing from your machine, nmapAutomator will suggest how to install it.

Runs on any shell

nmapAutomator is 100% POSIX compatible, so it can run on any sh shell, and on any unix-based machine (even a 10 YO router!), which makes nmapAutomator ideal for lateral movement recon.

If you want to run nmapAutomator on a remote machine, simply download a static nmap binary from this link, or with static-get, and transfer it to the remote machine. You can then use -s/--static-nmap to specify the path to the static nmap binary.

Remote Mode (Beta)

With the -r/--remote flag nmapAutomator will run in Remote Mode, which is designed to run using POSIX shell commands only, without relying on any external tools.
Remote Mode is still under development. Only following scans currently work with -r:

  • [x] Network Scan (currently ping only)
  • [ ] Port Scan
  • [ ] Full Scan
  • [ ] UDP Scan
  • [ ] Recon Scan

Output

nmapAutomator saves the output of each type of scan is saved into a separate file, under the output directory.
The entire script output is also saved, which you can view with less -r outputDir/nmapAutomator_host_type.txt, or you can simply cat it.


Requirements:

ffuf, which we can install with:

sudo apt update
sudo apt install ffuf -y

Or Gobuster 'v3.0 or higher', which we can install with:

sudo apt update
sudo apt install gobuster -y

Other recon tools used within the script include: |nmap Vulners|sslscan|nikto|joomscan|wpscan| |:-:|:-:|:-:|:-:|:-:| |droopescan|smbmap|enum4linux|dnsrecon|odat| |smtp-user-enum|snmp-check|snmpwalk|ldapsearch||

Most of these should be installed by default in Parrot OS and Kali Linux.
If any recon recommended tools are found to be missing, they will be automatically omitted, and the user will be notified.

Installation:

git clone https://github.com/21y4d/nmapAutomator.git
sudo ln -s $(pwd)/nmapAutomator/nmapAutomator.sh /usr/local/bin/

Usage:

./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)

Example scans:

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

Upcoming Features

  • [x] Support URL/DNS - Thanks @KatsuragiCSL
  • [x] Add extensions fuzzing for http recon
  • [x] Add an nmap progress bar
  • [x] List missing tools in recon
  • [x] Add option to change output folder
  • [x] Save full script output to a file
  • [x] Improve performance and efficiency of the script - Thanks @caribpa
  • [x] Make nmapAutomater 100% POSIX compatible. - Massive Thanks to @caribpa
  • [x] Add network scanning type, so nmapAutomator can discover live hosts on the network.
  • [ ] Enable usage of multiple scan types in one scan.
  • [ ] Enable scanning of multiple hosts in one scan.
  • [ ] Fully implement Remote Mode on all scans

Feel free to send your pull requests :)
For any pull requests, please try to follow these Contributing Guidelines.

Popular Port Projects
Popular Scanner Projects
Popular Networking Categories

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Shell
Port
Scanner
Nmap
Recon