debian/0000755000000000000000000000000011617254062007172 5ustar debian/rules0000755000000000000000000000053211611077760010254 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # include /usr/share/cdbs/1/rules/debhelper.mk # include /usr/share/cdbs/1/class/python-distutils.mk # include /usr/share/cdbs/1/rules/simple-patchsys.mk # # DEB_DH_INSTALL_SOURCEDIR := debian/tmp %: dh $@ --with=python2 --with=quilt get-orig: uscan --download-current-version --destdir ../tarballs debian/compat0000644000000000000000000000000211526565271010376 0ustar 5 debian/copyright0000644000000000000000000000243511526565271011137 0ustar This package was debianized by Alberto Gonzalez Iniesta on Thu, 08 May 2003 15:22:45 +0200 It was downloaded from http://www.secdev.org/projects/scapy/files/ Upstream Authors: Philippe Biondi Copyright (C) 2003 Philippe Biondi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is (C) 2007,2008 David Villa and is licensed under the GPL. debian/dirs0000644000000000000000000000001011526565271010053 0ustar usr/bin debian/control0000644000000000000000000000261511617253564010607 0ustar Source: scapy Section: python Priority: optional Maintainer: David Villa Alises Uploaders: Francisco Moya Build-Depends: debhelper (>= 7), python (>=2.6.6-3~), quilt Standards-Version: 3.9.2 Homepage: http://www.secdev.org/projects/scapy/ Vcs-Svn: svn://svn.debian.org/python-modules/packages/scapy/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/scapy/trunk/ Package: python-scapy Architecture: all Depends: ${python:Depends}, ${misc:Depends} Suggests: tcpdump, tcpreplay, wireshark, graphviz, imagemagick, python-gnuplot, python-crypto, python-pyx, ebtables, python-visual, sox, xpdf, gv, hexer, librsvg2-bin, python-pcapy Replaces: scapy (<< 1.0.5-1) Conflicts: scapy (<< 1.0.5-1) Provides: scapy Description: Packet generator/sniffer and network scanner/discovery Scapy is a powerful interactive packet manipulation tool, packet generator, network scanner, network discovery, packet sniffer, etc. It can for the moment replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump, tethereal, p0f, .... . In scapy you define a set of packets, then it sends them, receives answers, matches requests with answers and returns a list of packet couples (request, answer) and a list of unmatched packets. This has the big advantage over tools like nmap or hping that an answer is not reduced to (open/closed/filtered), but is the whole packet. debian/watch0000644000000000000000000000011611607110723010213 0ustar version=3 http://www.secdev.org/projects/scapy/files/scapy-([\d\.]+)\.tar\.gz debian/patches/0000755000000000000000000000000011611077760010623 5ustar debian/patches/setup.py.patch0000644000000000000000000000053011610100540013407 0ustar --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ archive_util.ARCHIVE_FORMATS["ezip"] = (make_ezipfile,[],'Executable ZIP file') -SCRIPTS = ['bin/scapy','bin/UTscapy'] +SCRIPTS = ['bin/scapy'] # On Windows we also need additional batch files to run the above scripts if os.name == "nt": SCRIPTS += ['bin/scapy.bat','bin/UTscapy.bat'] debian/patches/series0000644000000000000000000000004711611077760012041 0ustar setup.py.patch paths.patch 589995.diff debian/patches/589995.diff0000644000000000000000000000111011611077760012242 0ustar --- a/scapy/arch/__init__.py +++ b/scapy/arch/__init__.py @@ -45,7 +45,7 @@ LINUX=sys.platform.startswith("linux") OPENBSD=sys.platform.startswith("openbsd") -FREEBSD=sys.platform.startswith("freebsd") +FREEBSD = 'freebsd' in sys.platform NETBSD = sys.platform.startswith("netbsd") DARWIN=sys.platform.startswith("darwin") SOLARIS=sys.platform.startswith("sunos") --- a/scapy/arch/unix.py +++ b/scapy/arch/unix.py @@ -16,7 +16,7 @@ import scapy.arch scapy.config.conf.use_pcap = 1 -scapy.config.conf.use_dnet = 1 +scapy.config.conf.use_dnet = 0 from pcapdnet import * debian/patches/paths.patch0000644000000000000000000000130311610100540012736 0ustar --- a/scapy/arch/linux.py +++ b/scapy/arch/linux.py @@ -69,7 +69,7 @@ LOOPBACK_NAME="lo" -with os.popen("tcpdump -V 2> /dev/null") as _f: +with os.popen("/usr/sbin/tcpdump -V 2> /dev/null") as _f: if _f.close() >> 8 == 0x7f: log_loading.warning("Failed to execute tcpdump. Check it is installed and in the PATH") TCPDUMP=0 --- a/scapy/config.py +++ b/scapy/config.py @@ -56,11 +56,11 @@ class ProgPath(ConfClass): - pdfreader = "acroread" + pdfreader = "xpdf" psreader = "gv" dot = "dot" display = "display" - tcpdump = "tcpdump" + tcpdump = "/usr/sbin/tcpdump" tcpreplay = "tcpreplay" hexedit = "hexer" wireshark = "wireshark" debian/source/0000755000000000000000000000000011610100540010452 5ustar debian/source/format0000644000000000000000000000001411610100540011660 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001366111617253564011061 0ustar scapy (2.2.0-1) unstable; urgency=low * New upstream release. * Bug fix: "new upstream release 2.2 available", thanks to Michael Prokop (Closes: #618732). * Suggests python-pcapy, thanks to Jakub Wilk (#589995). * Bug fix: "import scapy.layers.dot11 fails on kfreebsd-*", thanks to Christian Kastner (Closes: #589995). Patch by Jakub Wilk * cdbs/dh_pysupport to dh7/dh_python2 migration. -- David Villa Alises Sun, 17 Jul 2011 13:08:38 +0200 scapy (2.1.0-1) unstable; urgency=low * New upstream release (Closes: #570343) -- David Villa Alises Wed, 24 Feb 2010 12:43:23 +0100 scapy (2.0.1-1) unstable; urgency=low [ Sandro Tosi ] * debian/control - switch Vcs-Browser field to viewsvn [ Yves-Alexis Perez ] * new upstream release. * debian/control: - update standards version to 3.8.3. - add ${misc:Depends} to depends since we use debhelper. * debian/patches: - both patches refreshed for new upstream. [ David Villa ] * new upstream release (Closes: #485767) -- David Villa Alises Wed, 30 Sep 2009 17:27:46 +0200 scapy (2.0.0.5-1) unstable; urgency=low * New upstream release. Source taken from mercurial repository at http://hg.secdev.org/scapy (tag 'v2.0.0.5') -- David Villa Alises Sun, 17 Aug 2008 18:02:55 +0200 scapy (1.1.1-4) UNRELEASED; urgency=low [ Piotr Ożarowski ] * Vcs-Svn, Vcs-Browser and Homepage fields added [ Sandro Tosi ] * debian/control - uniforming Vcs-Browser field -- Piotr Ożarowski Sat, 6 Oct 2007 23:47:25 +0200 scapy (1.1.1-3) unstable; urgency=low * Upstream author made several important modificacions and bug fixes, but he does not create a new upstream resease. I include them as a patch in /debian/patches/scapy.py-upstream.patch -- David Villa Alises Fri, 07 Sep 2007 15:50:27 +0200 scapy (1.1.1-2) unstable; urgency=low * debian/control - XS-Python-Version: >= 2.4 (Closes: #426504) -- David Villa Alises Tue, 29 May 2007 11:03:49 +0200 scapy (1.1.1-1) unstable; urgency=low * New upstream release * debian/control - Added Uploaders: Debian Python Modules Team - build-depends-indep to build-depends: python-all-dev, python-support - Changed Suggest: acroread to xpdf * debian/python-scapy.install - Changed to usr/lib/python2.*/site-packages/scapy.py (Closes: #421603) * debian/copyright: - Updated download location and author e-mail address * Thanks to Scott Kitterman for his patch -- David Villa Alises Thu, 10 May 2007 09:53:49 +0200 scapy (1.0.5.20-1) unstable; urgency=low * New upstream release. (Closes: #407918) * Include revision number in debian version. (Closes: #407920) * Corrected copyright information. (Closes: #407916) * Repacked upstream tarball with latest upstream revision, and documented this in README.Debian. * Added watch file. * Bumped compat level to 5. * debian/rules: Switch to CDBS. * debian/control: - Added Suggest: imagemagick and graphviz, for graph stuff. (Closes: #408130) - Added Suggest: python-crypto, needed for decrypting WEP messages. - Added Suggest: acroread, gv. (for psdump() and pdfdump()) - Added Suggest: sox (for VOIP stuff) - Added Suggest: python-visual (for trace3D()) * Removed outdated file `scapy.html'. * Thanks to Marcus Better for his unrelesed version. -- David Villa Alises Sun, 4 Feb 2007 16:56:03 +0100 scapy (1.0.5-1) unstable; urgency=low * New upstream release * debian/rules: Updated to new python policy. Thanks to Francisco Moya (Closes: #397958). * debian/control: - Binary package name changes according to Python Policy (Section 2.2) - Added dummy transitional package to provide an upgrade path from scapy. -- David Villa Alises Tue, 2 Jan 2007 16:26:35 +0100 scapy (1.0.4-1) unstable; urgency=low * New maintainer, with permission of previous maintainer * New upstream release (Closes: #362655) * Lets use scapy as library (Closes: #270267) * debian/control - Added Suggests: tcpdump -- David Villa Alises Fri, 14 Apr 2006 22:35:29 +0200 scapy (1.0.2-1) unstable; urgency=low * New upstream release (Closes: #346271) * debian/control: - Changed Depends on python2.3 to python. - Bumped Standards-Version to 3.6.1. No change. - Added Suggests: python-gnuplot, python-pyx, ebtables -- Alberto Gonzalez Iniesta Sat, 7 Jan 2006 14:40:04 +0100 scapy (1.0.0-1) unstable; urgency=low * New upstream release (Closes: #322329) -- Alberto Gonzalez Iniesta Sun, 28 Aug 2005 15:06:00 +0200 scapy (0.9.17-1) unstable; urgency=low * New upstream release * Modified scapy.py to point to the correct location of p0f.fp. (Closes: #289397) * Changed maintainer email address. -- Alberto Gonzalez Iniesta Mon, 17 Jan 2005 20:09:47 +0100 scapy (0.9.15-2) unstable; urgency=low * Added postrm to get rid of scapy.pyc on package removal. -- Alberto Gonzalez Iniesta Thu, 16 Oct 2003 17:06:01 +0200 scapy (0.9.15-1) unstable; urgency=low * New upstream release * Moved to debhelper compatability 4. Created debian/compat. * Bumped Standards-Version to 3.6.1. No change. * Changed Depends on python2.2 to python2.3 -- Alberto Gonzalez Iniesta Thu, 16 Oct 2003 16:52:39 +0200 scapy (0.9.14-1) unstable; urgency=low * New upstream version. (Closes: #198879) -- Alberto Gonzalez Iniesta Thu, 26 Jun 2003 19:04:38 +0200 scapy (0.9.12-1) unstable; urgency=low * Initial Release. (Closes: #192169) -- Alberto Gonzalez Iniesta Thu, 08 May 2003 15:11:36 +0200