Logo
Section 1 / 5

使用 Nmap 端口标志

学习如何使用端口标志。

导入

使用 Nmap 端口标志

学习如何使用端口标志。

单端口扫描语法

1nmap -p <端口> <网址>

扫描端口 22

1nmap -p 22 scanme.nmap.org

扫描特定服务

1nmap -p ssh scanme.nmap.org

通配符端口扫描

1nmap -p http* scanme.nmap.org
...
通配符扫描输出

多端口扫描

1nmap -p 20,21,22,23 scanme.nmap.org

多服务扫描

1nmap -p ssh,ftp,telnet scanme.nmap.org
...
多服务扫描输出

扫描前 1000 个端口

1nmap -p1-1000 scanme.nmap.org

扫描大于或小于指定端口号的端口

1// 扫描从 1 到 1000 的端口。 2nmap -p-1000 scanme.nmap.org 3 4// 扫描 10000 及之后的所有端口。 5nmap -p10000- scanme.nmap.org

扫描所有端口

1nmap -p- scanme.nmap.org
Terminal

附录

Nmap 详细、调试及其他标志