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 ?
D
DirtyJ447d 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
DU
Deleted User447d 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