Stealth scanning with Scapy

The following steps demonstrate scanning with Scapy:

  1. To demonstrate how a SYN scan is performed, we craft a TCP SYN request using Scapy and identify the responses associated with an open port, closed port, and non-responsive system.
  2. To send a TCP SYN request to any given port, we first need to build the layers of this request. The first layer that we need to construct is the IP layer:
  1. To build the IP layer for our request, we need to assign the IP object to the i variable. By calling the display() function, we identify the attribute configurations for the object. By default, both the sending and receiving addresses ...

Get Kali Linux Network Scanning Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.