nmap 扫描端口_Nmap端口规格和扫描顺序

本文详细介绍了Nmap扫描端口的技巧,包括如何指定目标端口、排除特定端口、进行受限/快速扫描,以及如何不随机化端口和扫描最常用端口。通过这些方法,可以更有效地进行网络扫描并获取准确结果。
摘要由CSDN通过智能技术生成
nmap 扫描端口

nmap 扫描端口

[rps-include post=6632]

[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之间指定端口范围

排除端口(Exclude Ports)

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之间的端口

受限/快速端口扫描(Limited/Fast Port Scan

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值