How to do it...

The following steps will help you for the OS identification using Scapy:

  1. Windows and Linux/Unix operating systems have different TTL starting values that are used by default. This factor can be used to attempt to fingerprint the type of operating system with which you are communicating. These values are summarized in the following table:
Operating system Standard TTL value
Microsoft Windows OS 128
Linux/Unix OS 64
  1. Some Unix-based systems will start with a default TTL value of 255; however, for simplicity in this exercise, we will use the provided values as the premise for the tasks addressed within this recipe. To analyze the TTL values of a response from the remote system, we first need to build a request. In ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.