QuestionQ23

Packet Analysis with Python

What does the ls(TCP) function output?

  • A It lists all of the TCP port numbers in a TCP stream
  • B It lists all of the packets that have a TCP layer
  • C It lists the contents of the TCP layer
  • D It lists all of the fields associated with the TCP layer
Explanation

Scapy’s ls function displays information about a specified protocol layer. For the TCP layer, it lists the fields associated with that layer, including fields such as source and destination ports, sequence and acknowledgment numbers, flags, and checksum.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!