scapy down and install

來源:互聯網
上載者:User

找了很多資料,很少有關於Scapy 下載和安裝的。

關聯地址:

http://www.secdev.org/projects/scapy/doc/installation.html

 

 

Windows¶

Scapy is primarily being developed for Unix-like systems and works best on those platforms. But the latest version of Scapy supports Windows out-of-the-box. So you can use nearly all of Scapy’s features on your Windows machine as well.

Note

If you update from Scapy-win v1.2.0.2 to Scapy v2 remember to use from scapy.all import * instead of from scapy import *.

 

 

You need the following software packages in order to install Scapy on Windows:

  • Python: python-2.5.4.msi. python-2.6.3.msi. After installation, add the Python installation directory and its Scripts subdirectory to your PATH. Depending on your Python version, the defaults would be C:\Python25 and C:\Python25\Scripts or C:\Python26 and C:\Python26\Scripts respectively.
  • Scapy: latest development version from the Mercurial repository. Unzip the archive, open a command prompt in that directory and run “python setup.py install”.
  • pywin32: pywin32-214.win32-py2.5.exe pywin32-214.win32-py2.6.exe
  • WinPcap: WinPcap_4_1_1.exe. You might want to choose “[x] Automatically start the WinPcap driver at boot time”, so that non-privileged users can sniff, especially under Vista and Windows 7. If you want to use the ethernet vendor database to resolve MAC addresses or use the wireshark() command, download Wireshark which already includes WinPcap.
  • pypcap: pcap-1.1-scapy-20090720.win32-py25.exe pcap-1.1-scapy-20090720.win32-py2.6.exe. This is a special version for Scapy, as the original leads to some timing problems. Now works on Vista and Windows 7, too. Under Vista/Win7 please right-click on the installer and choose “Run as administrator”.
  • libdnet: dnet-1.12.win32-py2.5.exe dnet-1.12.win32-py2.6.exe. Under Vista/Win7 please right-click on the installer and choose “Run as administrator”
  • pyreadline: pyreadline-1.5-win32-setup.exe

Just download the files and run the setup program. Choosing the default installation options should be safe.

For your convenience direct links are given to the versions I used (for Python 2.5 and Python 2.6). 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. As a last resort, search the web for the filename.

After all packages are installed, open a command prompt (cmd.exe) and run Scapy by typing scapy. 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.

If really nothing seems to work, consider skipping the Windows version and using Scapy from a Linux Live CD – either in a virtual machine on your Windows host or by booting from CDROM: An older version of Scapy is already included in grml and BackTrack for example. While using the Live CD you can easily upgrade to the lastest Scapy version by typing cd /tmp && wget scapy.net.

 

scapy useage:

             http://www.secdev.org/projects/scapy/doc/usage.html#starting-scapy

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.