Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dloss committed Dec 6, 2009
2 parents 6f50cd4 + 3e173ba commit eebc489
Show file tree
Hide file tree
Showing 14 changed files with 2,655 additions and 47 deletions.
12 changes: 9 additions & 3 deletions doc/scapy/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Make sure you have Python installed before you go on.
Latest release
--------------

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::
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::

$ cd /tmp
$ wget scapy.net
Expand All @@ -55,8 +55,14 @@ $ sudo python setup.py install
Alternatively, you can make the zip file executable, move it to a directory in your PATH and run it directly::

$ chmod +x scapy-latest.zip
$ mv scapy-latest.zip /usr/local/bin/scapy
$ sudo scapy
$ sudo ./scapy-latest.zip

.. note::

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

Current development version
----------------------------
Expand Down
4 changes: 2 additions & 2 deletions scapy/arch/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ def send(self, x):
self.outs.bind(sdto)
sn = self.outs.getsockname()
ll = lambda x:x
if sn[3] in (ARPHDR_PPP,ARPHDR_TUN):
sdto = (iff, ETH_P_IP)
if type(x) in conf.l3types:
sdto = (iff, conf.l3types[type(x)])
if sn[3] in conf.l2types:
ll = lambda x:conf.l2types[sn[3]]()/x
try:
Expand Down
6 changes: 6 additions & 0 deletions scapy/crypto/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Arnaud Ebalard <arno@natisbad.org>
## This program is published under a GPLv2 license

__all__ = ["cert"]
Loading

0 comments on commit eebc489

Please sign in to comment.