MassMap automates port scanning of large target IP addresses and/or CIDR notations by combining Masscan's speed, and Nmap's detailed scanning features.
This is based on the research "Finding the Balance Between Speed & Accuracy During an Internet-wide Port Scanning".
- MassMap checks if it has the latest versions of Masscan and Nmap. If not, MassMap installs them.
- Masscan then performs a scan on all 65535 TCP ports against the list of target IP addresses and/or CIDR notations.
- Using the open ports identified by Masscan, an Nmap version and script scans gets executed against the hosts which have open ports. The results are also written in the
results
directory. Two HTML files are created: one uses Nmap's default XLS stylesheet, while the other one uses honze's bootstrap stylesheet.
Setting Up the Tools
git clone https://github.com/capt-meelo/MassMap.git
cd MassMap
chmod +x setup.sh
./setup.sh
Running MassMap
cd MassMap
chmod +x massmap.sh
./massmap.sh <target_file>
- It's suggested to run this tool in a VPS, such as DigitalOcean, for better speed & accuracy.
- Running this tool takes time, thus it's recommended to run it under a screen or tmux session.
- By default, Masscan runs using the option
--rate 100000
for more accurate results (based on this research). If you want Masscan to run faster, increase the--rate
option.
If you identified an issue, or have a new idea, feel free to file an issue or pull a request.
- To the developers and contributors of Masscan and Nmap.
- To honze's bootstrap stylesheet for a beautiful interface for checking scan results.
This tool is written for educational purposes only. You are responsible for your actions. If you mess something up or break any law while using this tool, it's your fault and your fault only.