6.7 指定发包长度
表6.7所示为本章节所需Nmap命令表,表中加粗命令为本小节所需命令——指定发包长度。
使用--data-length选项就可以在发送报文的时候指定发包长度。通常情况下,TCP包是40个字节,ICMP Echo有28个字节,所以在原来的报文基础上附加随机数据达到规避防火墙的效果。
root@Wing:~# nmap --data-length 30 192.168.126.131
Starting Nmap 6.40 ( http://nmap.org ) at 2014-06-12 15:01 CST
Nmap scan report for 192.168.126.131
Host is up (0.00021s latency).
Not shown: 977 closed ports
PORT STATE SERVICE
21/tcp open ftp
22/tcp open ssh
23/tcp open telnet
25/tcp open smtp
53/tcp open domain
80/tcp open http
111/tcp open rpcbind
139/tcp open netbios-ssn
445/tcp open microsoft-ds
512/tcp open exec
513/tcp open login
514/tcp open shell
1099/tcp open rmiregistry
1524/tcp open ingreslock
2049/tcp open nfs
2121/tcp open ccproxy-ftp
3306/tcp open mysql
5432/tcp open postgresql
5900/tcp open vnc
6000/tcp open X11
6667/tcp open irc
8009/tcp open ajp13
8180/tcp open unknown
MAC Address: 00:0C:29:E0:2E:76 (VMware)
Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
root@Wing:~#
以上则是对目标主机发送30个字节大小的包。
时间: 2024-09-08 07:35:08