Usage masscan: Substitute for Nmap

Masscan is called as fastest TCP port scanner. It is similar to Nmap, a popular network scanner. Below is the list of commands that help you in using masscan.

Click Here if you are interested in Most Asked Nmap Interview Questions asked by Big Companies.

Usage of Tool

1. Display help

#masscan -h

2. Scan

#masscan -p 0-65535 192.168.0.101

3. Capture output in grep (-oG), xml (-oX) etc

#masscan -p 0-65535 192.168.0.0/24 -oG test

4. Increase scan speed using ‘--rate’

#masscan -p 80 192.0.0.0/8 --rate 10000

5. Exclude and include host for scan in file

#masscan -p 80 453.43.4.1/24 --excludefile ExcFile
#masscan -p 80 453.43.4.1/24 --includefile IncFile

6. Put all commands in .conf file and scan with ‘-c’ command

Example:

Conclusion

Masscan is an awesome tool and the only single tool that is capable of replacing Nmap. It is recommended to learn both tools in great detail as it helps you to identify more vulnerabilities in the IT system.

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

10 Blockchain Security Vulnerabilities OWASP API Top 10 - 2023 7 Facts You Should Know About WormGPT OWASP Top 10 for Large Language Models (LLMs) Applications Top 10 Blockchain Security Issues