Skip to content

Commit 09954e9

Browse files
committed
Change download location for Windows from scapy.net to hg repo
The ZIP file available at http://scapy.net/ has an additional header to make it startable on Linux. This confuses the Windows internal unzipper and causes warnings about corrupted archives. The files can be extracted with 7-Zip or InfoUnzip, but this might be inconvenient for a lot of users. So we now point to the Hg repo which carries an unmodified ZIP. * * * Fixed duplicate reference in install.rst The duplicate reference "latest version" gave a Sphinx warning. * * * Updated version number of Scapy documentation * * * Fixed typo in Windows installation doc
1 parent 3e96a13 commit 09954e9

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

doc/scapy/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
# other places throughout the built documents.
4343
#
4444
# The short X.Y version.
45-
version = '2.0.1'
45+
version = '2.1.0'
4646
# The full version, including alpha/beta/rc tags.
47-
release = '2.0.1'
47+
release = '2.1.0'
4848

4949
# There are two options for replacing |today|: either, you set today to some
5050
# non-false value, then it is used:

doc/scapy/installation.rst

+13-3
Original file line numberDiff line numberDiff line change
@@ -44,25 +44,35 @@ Make sure you have Python installed before you go on.
4444
Latest release
4545
--------------
4646

47-
Download the `latest release <http://scapy.net>`_ to a temporary directory and install it in the standard `distutils <http://docs.python.org/inst/inst.html>`_ way::
47+
Download the `latest version <http://scapy.net>`_ to a temporary directory and install it in the standard `distutils <http://docs.python.org/inst/inst.html>`_ way::
4848

4949
$ cd /tmp
5050
$ wget scapy.net
5151
$ unzip scapy-latest.zip
5252
$ cd scapy-2.*
5353
$ sudo python setup.py install
5454

55-
Alternatively, you can make the zip file executable, move it to a directory in your PATH and run it directly::
55+
Alternatively, you can execute the zip file::
5656

5757
$ chmod +x scapy-latest.zip
5858
$ sudo ./scapy-latest.zip
5959

60+
or::
61+
62+
$ sudo sh scapy-latest.zip
63+
64+
or::
65+
66+
$ mv scapy-latest.zip /usr/local/bin/scapy
67+
$ sudo scapy
68+
6069
.. note::
6170

6271
To make a zip executable, some bytes have been added before the zip header.
6372
Most zip programs handle this, but not all. If your zip program complains
6473
about the zip file to be corrupted, either change it, or download a
6574
non-executable zip at http://hg.secdev.org/scapy/archive/tip.zip
75+
6676

6777
Current development version
6878
----------------------------
@@ -372,7 +382,7 @@ Scapy is primarily being developed for Unix-like systems and works best on those
372382
You need the following software packages in order to install Scapy on Windows:
373383

374384
* `Python <http://www.python.org>`_: `python-2.5.4.msi <http://www.python.org/ftp/python/2.5.4/python-2.5.4.msi>`_. `python-2.6.3.msi <http://www.python.org/ftp/python/2.6.3/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.
375-
* `Scapy <http://www.secdev.org/projects/scapy/>`_: `latest version from the Mercurial repository <http://scapy.net>`_. Unzip the archive, open a command prompt in that directory and run "python setup.py install".
385+
* `Scapy <http://www.secdev.org/projects/scapy/>`_: `latest development version <http://hg.secdev.org/scapy/archive/tip.zip>`_ from the `Mercurial repository <http://hg.secdev.org/scapy>`_. Unzip the archive, open a command prompt in that directory and run "python setup.py install".
376386
* `pywin32 <http://python.net/crew/mhammond/win32/Downloads.html>`_: `pywin32-214.win32-py2.5.exe <http://surfnet.dl.sourceforge.net/sourceforge/pywin32/pywin32-214.win32-py2.5.exe>`_ `pywin32-214.win32-py2.6.exe <http://downloads.sourceforge.net/project/pywin32/pywin32/Build%20214/pywin32-214.win32-py2.6.exe>`_
377387
* `WinPcap <http://www.winpcap.org/>`_: `WinPcap_4_1_1.exe <http://www.winpcap.org/install/bin/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 <http://www.wireshark.org/>`_ which already includes WinPcap.
378388
* `pypcap <http://code.google.com/p/pypcap/>`_: `pcap-1.1-scapy-20090720.win32-py25.exe <http://www.secdev.org/projects/scapy/files/pcap-1.1-scapy-20090720.win32-py2.5.exe>`_ `pcap-1.1-scapy-20090720.win32-py2.6.exe <http://www.secdev.org/projects/scapy/files/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".

0 commit comments

Comments
 (0)