Packages from Scapy

Asked

Viewed 185 times

1

I’m having some doubts I can’t resolve about the scapy, Could you help me please?

Doubts:

  1. To declare a package on Scapy I do: pck = IP()/TCP(). With this I can consult the layers of pkt, with for example: pkt[IP] or pkt[0], there arises a doubt:

    • What kind of data is pkt? A dictionary? How does it use a class such as index(in the IP case) or a number?
  2. How Scapy treats the "/" of IP()/TCP() so that Python doesn’t understand as the divider?

1 answer

0

  • Oh I get it, nice. Thank you so much for your help. Only one thing, referring to the index that, in the pkt case, uses, this index would be the IP class itself, because it is not a string like in dictionaries? I saw that you can use number as index too.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.