(Aug-14-2020, 10:41 AM)trazom Wrote: i'm learning Python for a few days and i don't understand this command , specially the usage of "/"With
sr1(IP
you are using Scapy.In normal Python usage the operator
/
is division.Scapy change the behavior of
/
to use it a composition operator between two layers.So they parse/check for
/
and give it a special task.Stacking layers
scapy Wrote:The/
operator has been used as a composition operator between two layers.
When doing so, the lower layer can have one or more of its defaults fields overloaded according to the upper layer.
(You still can give the value you want).
A string can be used as a raw layer