1

I followed the instructions for installing Scapy for Python2.7 (Running Scapy on Windows with Python 2.7) on win64 however the sniff() function doesn't work and ends abruptly. What steps should I take in order to fix this?

Community
  • 1
  • 1
Sman
  • 145
  • 9

2 Answers2

0

Those instructions are very outdated. You should remove both pycap and dnet. They are very old...

The latest dev scapy version (https://github.com/secdev/scapy) is much easier to install. Please follow the latest doc, which is very clear:

http://scapy.readthedocs.io/en/latest/installation.html#windows

Cukic0d
  • 5,111
  • 2
  • 19
  • 48
0

The easiest way to find the device name:

IFACES.show() #--> will give you a table of your devices with an index
mydev = IFACES.dev_from_index(X)   #---> where X is the index of your desired interface

then do a sniff in scapy as shown:

sniff(iface=dev,prn=lambda x:x.summary)
Lijo Joseph
  • 4,242
  • 1
  • 13
  • 12
  • This is correct. However scapy will select the used interface by default, so it is only required when having multiple networking interfaces – Cukic0d Dec 07 '18 at 12:13