O'Reilly logo

Kali Linux Network Scanning Cookbook by Justin Hutchens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using hping3 to perform layer 4 discovery

We previously discussed the use of hping3 to perform layer 3 ICMP discovery. In addition to this function, hping3 can also be used to perform UDP and TCP host discovery. However, as discussed earlier, hping3 was developed to perform targeted requests, and some scripting is required to use it as an effective scanning tool. This recipe will demonstrate how to use hping3 to perform layer 4 discovery with both TCP and UDP protocols.

Getting ready

Using hping3 to perform layer 4 discovery does not require a lab environment, as many systems on the Internet will reply to both TCP and UDP traffic. However, it is highly recommended that you perform any type of network scanning exclusively in your own lab unless you ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required