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 Scapy to perform layer 4 discovery

There are numerous, different ways that target discovery can be performed at layer 4. Scanning can be performed with either User Datagram Protocol (UDP) or Transmission Control Protocol (TCP). Scapy can be used to craft custom requests using both of these transport protocols and can be used in conjunction with Python scripting to develop useful discovery tools. This recipe will demonstrate how to use Scapy to perform layer 4 discovery with both TCP and UDP.

Getting ready

Using Scapy 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 ...

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