To get the latest versions, with bugsfixes and new features, but maybe not as stable, see the `development version <#current-development-version>`_.
To get the latest versions, with bugsfixes and new features, but maybe not as stable, see the `development version <#current-development-version>`_.
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::
Use pip::
$ pip install scapy
You can also 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::
$ cd /tmp
$ cd /tmp
$ wget scapy.net
$ wget --trust-server-names scapy.net # or wget -O scapy.zip scapy.net
$ unzip scapy-latest.zip
$ unzip scapy-x.x.x.zip
$ cd scapy
$ cd scapy
$ sudo python setup.py install
$ sudo python setup.py install
Alternatively, you can execute the zip file::
Alternatively, you can execute the zip file::
$ chmod +x scapy-latest.zip
$ chmod +x scapy-x.x.x.zip
$ sudo ./scapy-latest.zip
$ sudo ./scapy-x.x.x.zip
or::
or::
$ sudo sh scapy-latest.zip
$ sudo sh scapy-x.x.x.zip
or::
or::
$ mv scapy-latest.zip /usr/local/bin/scapy
$ mv scapy-x.x.x.zip /usr/local/bin/scapy
$ sudo scapy
$ sudo scapy
or::
$ chmod +x scapy-x.x.x.zip
$ ./scapy-x.x.x.zip
or download and run in one command::
$ sh <(curl -sL scapy.net)
.. note::
.. note::
To make a zip executable, some bytes have been added before the zip header.
To make a zip executable, some bytes have been added before the zip header.
...
@@ -107,7 +121,10 @@ Then you can always update to the latest version::
...
@@ -107,7 +121,10 @@ Then you can always update to the latest version::
$ git pull
$ git pull
$ sudo python setup.py install
$ sudo python setup.py install
.. note::
You can run scapy without installing it using the ``run_scapy`` (unix) or ``run_scapy.bat`` (Windows) script or running it directly from the executable zip file (see previous section).