![Pip install scapy](https://kumkoniak.com/33.jpg)
![pip install scapy pip install scapy](https://img-blog.csdnimg.cn/20190614151140856.png)
If you have set the PATH correctly, this will find a little batch file in your C:\Python26\Scripts directory and instruct the Python interpreter to load Scapy. As a last resort, search the web for the filename.Īfter all packages are installed, open a command prompt (cmd.exe) and run Scapy by typing scapy.
![pip install scapy pip install scapy](https://miro.medium.com/max/1258/0*FGi31qVSsEOlyTSa.jpg)
If these links do not work or if you are using a different Python version, just visit the homepage of the respective package and look for a Windows binary. Choosing the default installation options should be safe.įor your convenience direct links are given to the versions I used (for Python 2.5 and Python 2.6). Just download the files and run the setup program. Under Vista/Win7 please right-click on the installer and choose “Run as administrator” Under Vista/Win7 please right-click on the installer and choose “Run as administrator”. This is a special version for Scapy, as the original leads to some timing problems. If you want to use the ethernet vendor database to resolve MAC addresses or use the wireshark() command, download Wireshark which already includes WinPcap.
![pip install scapy pip install scapy](https://www.studytonight.com/network-programming-in-python/images/introduction-to-scapy-2.png)
You might want to choose “ Automatically start the WinPcap driver at boot time”, so that non-privileged users can sniff, especially under Vista and Windows 7. Unzip the archive, open a command prompt in that directory and run “python setup.py install”.
- Scapy: latest development version from the Mercurial repository.
- Depending on your Python version, the defaults would be C:\Python25 and C:\Python25\Scripts or C:\Python26 and C:\Python26\Scripts respectively.
After installation, add the Python installation directory and its Scripts subdirectory to your PATH. You need the following software packages in order to install Scapy on Windows: