1
I’m having some doubts I can’t resolve about the scapy
, Could you help me please?
Doubts:
To declare a package on Scapy I do:
pck = IP()/TCP()
. With this I can consult the layers ofpkt
, with for example:pkt[IP]
orpkt[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?
- What kind of data is
How Scapy treats the
"/"
ofIP()/TCP()
so that Python doesn’t understand as the divider?
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.
– Filipe Andrade