Deleted User
Deleted User2y ago

python scapy

from scapy.all import sniff, NetflowSession, TCPSession, IPSession

my_session = NetflowSession()

test = sniff(count=50, prn= lambda x:x.summary())


test = my_session._ip_process_packet(test)

print(test)
from scapy.all import sniff, NetflowSession, TCPSession, IPSession

my_session = NetflowSession()

test = sniff(count=50, prn= lambda x:x.summary())


test = my_session._ip_process_packet(test)

print(test)
what does ._ip_process_packet(test) do ?
2 Replies
DirtyJ
DirtyJ2y ago
@Deleted User looks like that method just extracts info from the packets. Here's the source: https://github.com/secdev/scapy/blob/ca10c5cf00425d0178998ec0b006cbb65ddbfb54/scapy/sessions.py#L126
Deleted User
Deleted UserOP2y ago
bu it doesn't this function takes an iterable whenever i send it an iterable it just returns that iterable it doesn't do anything

Did you find this page helpful?