I have some doubts that I can not heal about scapy
, could you help me please?
Questions:
To declare a package in Scapy I do: pck = IP()/TCP()
. With this I can query 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 like index (in IP case) or a number?
How does Scapy treat "/"
of IP()/TCP()
so that Python does not understand how the divider?