nmap 扫描端口
[rps-include post6632]
[rps-include post 6632]
Port specification is important part of the scan. We should set port scope carefully because wrong scope will make our result vulnerable to false and long for time.
端口规格是扫描的重要部分。 我们应该谨慎设置端口范围因为错误的范围会使我们的结果容易遭受错误和长时间的攻击。
指定端口 (Specify Ports)As we know tcp and udp protocols have port numbers from 0 to 65535. There are default values for some scans but we can specify the target ports with this parameter.
我们知道tcp和udp协议的端口号从0到65535。某些扫描有默认值但是我们可以使用此参数指定目标端口。
$ nmap -p 22,80,443 10.0.0.1
-p will specify ports 22, 80, 443 for remote
-p将为远程指定端口22、80、443
$ nmap -p 0-100 10.0.0.1
-p will specify port range between 0 and 100
-p将在0到100之间指定端口范围
We can exclude ports too. Specified ports will be excluded.
我们也可以排除端口。 指定的端口将被排除。
$ nmap -p 0-100 --exclude-ports 20-30 10.0.0.1
–exclude-ports will remove ports between 20 and 30
–exclude-ports将删除20到30之间的端口
Nmap normally scans for top used 1000 ports but if we are in hurry we can limit it to 100 ports with option -F
Nmap通常会扫描使用率最高的1000个端口但是如果我们很忙我们可以使用-F选项将其限制为100个端口
$ nmap -F 10.0.0.1
Scan top 100 ports with -F
用-F扫描前100个端口
Nmap normally in randomized order. If we want to scan orderly we can use -r
Nmap通常按随机顺序排列。 如果要顺序扫描可以使用-r
$ nmap -r 10.0.0.1
Scan orderly with -r
用-r顺序扫描
We can provide how much of the most popular ports will be scanned. Nmap provides most used ports database by the way.
我们可以提供将扫描多少个最受欢迎的端口。 Nmap提供了最常用的端口数据库。
$ nmap --top-ports 5 10.0.0.1
Scan will take on most popular 5 ports with –top-ports option
带有–top-ports选项的扫描将扫描最受欢迎的5个端口
[rps-include post6632]
[rps-include post 6632]
LEARN MORE How To Scan Top Ports with Masscan? 了解更多信息如何使用Masscan扫描顶部端口翻译自: https://www.poftut.com/nmap-port-specification-scan-order/
nmap 扫描端口