- Nmap 6:Network exploration and security auditing Cookbook
- Paulino Calderon Pale
- 277字
- 2021-08-05 18:31:06
Hiding our traffic with additional random data
Packets generated by Nmap scans usually just have the protocol headers set and, only in certain cases, include specific payloads. Nmap implements a feature to decrease the likelihood of detecting these known probes, by using random data as payloads.
This recipe describes how to send additional random data in packets sent by Nmap during a scan.
How to do it...
To append 300 bytes of random data, open your terminal and type the following command:
# nmap -sS -PS --data-length 300 scanme.nmap.org
How it works...
The argument --data-length <# of bytes>
tells Nmap to generate random bytes and append them as data in the requests.
Most of the scanning techniques are supported in this method, but it is important to note that using this argument slows down a scan since we need to transmit more data with each request.
In the following screenshot, a packet generated by a default Nmap scan, and another one where we used the argument --data-length
, are shown:

There's more...
Setting the argument --data-length
to 0
will force Nmap to not use any payloads in the requests:
# nmap --data-length 0 scanme.nmap.org
See also
- The Scanning using specific port ranges recipe in Chapter 1, Nmap Fundamentals
- The Spoofing the origin IP of a port scan recipe in Chapter 3, Gathering Additional Host Information
- The Forcing DNS resolutions recipe
- The Excluding hosts from your scans recipe
- The Scanning IPv6 addresses recipe
- The Skipping tests to speed up long scans recipe in Chapter 7, Scanning Large Networks
- The Adjusting timing parameters recipe in Chapter 7, Scanning Large Networks
- The Selecting the correct timing template recipe in Chapter 7, Scanning Large Networks
- INSTANT Windows PowerShell
- API攻防:Web API安全指南
- 同態(tài)密碼學(xué)原理及算法
- 物聯(lián)網(wǎng)安全滲透測試技術(shù)
- 解密數(shù)據(jù)恢復(fù)
- CTF特訓(xùn)營:技術(shù)詳解、解題方法與競賽技巧
- Mastering Malware Analysis
- Web安全攻防從入門到精通
- 黑客攻防從入門到精通:命令版
- 云計算安全:關(guān)鍵技術(shù)、原理及應(yīng)用
- 數(shù)字銀行安全體系構(gòu)建
- 一本書讀透金融科技安全
- 社會工程:防范釣魚欺詐(卷3)
- 數(shù)據(jù)恢復(fù)技術(shù)深度揭秘
- CTF網(wǎng)絡(luò)安全競賽入門教程