1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-15 18:55:23 +02:00
tldr/pages/common/masscan.md
Machiavelli b1eebc865f
masscan: add example (#16146)
* masscan: add example

* Update pages/common/masscan.md

Co-authored-by: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com>

* Update pages/common/masscan.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

---------

Co-authored-by: Nelson Figueroa <30811275+nelsonfigueroa@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-04-11 09:00:29 +02:00

37 lines
1.3 KiB
Markdown

# masscan
> Network scanner for scanning as fast as possible.
> Best run with elevated privileges. Nmap compatibility run `masscan --nmap` to find out more.
> More information: <https://manned.org/masscan>.
- Scan an IP or network subnet for port 80:
`masscan {{ip_address|network_prefix}} {{[-p|--ports]}} {{80}}`
- Scan a class B subnet for the top 100 ports at 100,000 packets per second:
`masscan {{10.0.0.0/16}} --top-ports {{100}} --rate {{100000}}`
- Scan a class B subnet avoiding ranges from a specific exclude file:
`masscan {{10.0.0.0/16}} --top-ports {{100}} --excludefile {{path/to/file}}`
- Scan a class B subnet with Nmap-like version detection (banner grabbing):
`masscan {{10.0.0.0/16}} {{[-p|--ports]}} {{22,80}} --banners --rate {{100000}}`
- Scan the Internet for web servers running on port 80 and 443:
`masscan {{0.0.0.0/0}} {{[-p|--ports]}} {{80,443}} --rate {{10000000}}`
- Scan the Internet for DNS servers running on UDP port 53:
`masscan {{0.0.0.0/0}} {{[-p|--ports]}} {{U:53}} --rate {{10000000}}`
- Scan the Internet for a specific port range and export to a file:
`masscan {{0.0.0.0/0}} {{[-p|--ports]}} {{0-65535}} --output-format {{binary|grepable|json|list|xml}} --output-filename {{path/to/file}}`
- Read binary scan results from a file and output to `stdout`:
`masscan --readscan {{path/to/file}}`