python - Sniff() function is not filtering packets as mentioned in the option "filter" -
i have python script uses scapy sniff trafic. have line
sp=input('please enter sourceport number') s="tcp , port "+str(sp) syn=sniff(filter=s, iface="eth0",count=1,timeout=60)
the problem result of includes non tcp packet :
ether / ip / udp / dns qry "daisy.ubuntu.com."
what cause of problem , how can solve it.
thanks in advance.
Comments
Post a Comment