1

I have a Python script that uses Scapy to sniff trafic. I have this line

sp=input('please enter sourceport number')
s="tcp and port "+str(sp)
SYN=sniff(filter=s, iface="eth0",count=1,timeout=60)

The problem is that the result of that includes a NON TCP packet :

Ether / IP / UDP / DNS Qry "daisy.ubuntu.com."

What is the cause of this problem and how can I solve it.

Thanks in advance.

Pierre
  • 6,047
  • 1
  • 30
  • 49
farfalla
  • 173
  • 1
  • 1
  • 10

0 Answers0