--- inguma-0.0.7.2.orig/debian/dirs
+++ inguma-0.0.7.2/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/inguma
--- inguma-0.0.7.2.orig/debian/rules
+++ inguma-0.0.7.2/debian/rules
@@ -0,0 +1,125 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+include /usr/share/quilt/quilt.make
+
+configure: configure-stamp
+configure-stamp: patch
+ dh_testdir
+
+ touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+
+ # Add here commands to compile the package.
+ #$(MAKE)
+ #docbook-to-man debian/inguma.sgml > inguma.1
+
+ touch $@
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp configure-stamp
+
+ # Add here commands to clean up after the build process.
+ #-$(MAKE) clean
+ [ ! -d build ] || rm -rf build
+ find . -name "*.pyc" -delete
+
+ dh_clean
+
+fixperms:
+ # fix scripts with shebang
+ # make python scripts executable
+ for i in `find $(CURDIR)/debian/inguma/ -mindepth 3 -type f`; do \
+ case $$i in \
+ *.py) \
+ if head -n 1 $$i | grep -q -s "#!"; then \
+ chmod 755 $$i; \
+ fi; \
+ ;; \
+ esac \
+ done
+
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/inguma.
+ install -m755 debian/exe/inguma debian/inguma/usr/bin/
+ install -m755 debian/exe/ingumagui debian/inguma/usr/bin/
+ for file in *.py ports; do \
+ install $$file $(CURDIR)/debian/inguma/usr/share/inguma/; \
+ done
+ rm -f $(CURDIR)/debian/inguma/usr/share/inguma/scapy.py
+ rm -f $(CURDIR)/debian/inguma/usr/share/inguma/winscapy.py
+
+ for dir in auxi data dis gui krash lib logo modules payloads; do \
+ cp -r $$dir $(CURDIR)/debian/inguma/usr/share/inguma/; \
+ done
+
+ # cleanup
+ rm -rf debian/inguma/usr/share/inguma/dis/RCS
+ rm -f debian/inguma/usr/share/inguma/lib/pyshellcodelib/LICENSE
+ rm -f debian/inguma/usr/share/inguma/lib/pyshellcodelib/test
+ find debian/inguma/usr/share/inguma/ -mindepth 1 -type f -exec chmod 0644 {} \;
+ chmod 0755 debian/inguma/usr/share/inguma/gui/make.sh
+
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# We have nothing to do by default.
+
+# Build architecture-independent files here.
+binary-indep: build install fixperms
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+# dh_install
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_pysupport
+ dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+# dh_link
+# dh_strip
+ dh_compress
+ dh_fixperms
+# dh_perl
+# dh_makeshlibs
+ dh_installdeb
+ #dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure fixperms
--- inguma-0.0.7.2.orig/debian/docs
+++ inguma-0.0.7.2/debian/docs
@@ -0,0 +1,5 @@
+MODULES.txt
+README
+TODO
+doc/TUTORIAL.txt
+doc/html
--- inguma-0.0.7.2.orig/debian/compat
+++ inguma-0.0.7.2/debian/compat
@@ -0,0 +1 @@
+5
--- inguma-0.0.7.2.orig/debian/copyright
+++ inguma-0.0.7.2/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Pierre Chifflier <pollux@debian.org> on
+Tue, 25 Dec 2007 19:04:43 +0100.
+
+It was downloaded from http://inguma.sourceforge.net
+
+Upstream Author: Joxean Koret <joxeankoret@yahoo.es>
+
+Copyright (c) 2006, 2007, 2008 Joxean Koret <joxeankoret@yahoo.es>
+
+License:
+
+This library is released under the GPLv2
+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 dated June, 1991.
+
+ This package 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 package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, 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 Pierre Chifflier <pollux@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+
--- inguma-0.0.7.2.orig/debian/changelog
+++ inguma-0.0.7.2/debian/changelog
@@ -0,0 +1,41 @@
+inguma (0.0.7.2-2) unstable; urgency=low
+
+ * Fix scapy configuration (Closes: #526945)
+ * Remove build-dep on python-dev, not needed
+ * Remove alternate dependency on scapy (Closes: #506140)
+ * Bump standards version to 3.9.1
+ * Move python-qt3 to Recommends (Closes: #512464)
+ * Fix use of "with" keyword (Closes: #582024)
+ Thanks to Luca Bruno for the patch
+ * Debian package 0.0.7.2-2
+
+ -- Pierre Chifflier <pollux@debian.org> Wed, 25 Aug 2010 16:21:38 +0200
+
+inguma (0.0.7.2-1) unstable; urgency=low
+
+ * New upstream release
+ * Remove shipped scapy version (Closes: #466963)
+
+ -- Pierre Chifflier <pollux@debian.org> Fri, 28 Mar 2008 19:16:40 +0100
+
+inguma (0.0.6-3) unstable; urgency=low
+
+ * Re-package inguma (Closes: #467446)
+ * Do not use python-support, packages are no real libs,
+ just private modules, so they are now installed
+ in /usr/share/inguma
+
+ -- Pierre Chifflier <pollux@debian.org> Mon, 25 Feb 2008 17:55:00 +0100
+
+inguma (0.0.6-2) unstable; urgency=low
+
+ * Move package to section net (Closes: #466765)
+
+ -- Pierre Chifflier <pollux@debian.org> Thu, 21 Feb 2008 11:27:07 +0100
+
+inguma (0.0.6-1) unstable; urgency=low
+
+ * Initial release (Closes: #456512)
+
+ -- Pierre Chifflier <pollux@debian.org> Fri, 01 Feb 2008 21:25:23 +0100
+
--- inguma-0.0.7.2.orig/debian/pycompat
+++ inguma-0.0.7.2/debian/pycompat
@@ -0,0 +1 @@
+2
--- inguma-0.0.7.2.orig/debian/control
+++ inguma-0.0.7.2/debian/control
@@ -0,0 +1,19 @@
+Source: inguma
+Section: net
+Priority: extra
+Maintainer: Pierre Chifflier <pollux@debian.org>
+Build-Depends: debhelper (>= 5.0.37.2),
+ python,
+ quilt (>= 0.40)
+Standards-Version: 3.9.1
+
+Package: inguma
+Architecture: all
+Depends: python, ${misc:Depends}
+Recommends: python-scapy, tcpdump, python-qt3
+Suggests: python-gnuplot
+Description: Open source penetration testing toolkit
+ Inguma is a free penetration testing and vulnerability discovery toolkit
+ entirely written in Python. Framework includes modules to discover
+ hosts, gather information about, fuzz targets, brute force usernames and
+ passwords, exploits, and a disassembler.
--- inguma-0.0.7.2.orig/debian/exe/inguma
+++ inguma-0.0.7.2/debian/exe/inguma
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+cd /usr/share/inguma
+
+python /usr/share/inguma/inguma.py "$@"
--- inguma-0.0.7.2.orig/debian/exe/ingumagui
+++ inguma-0.0.7.2/debian/exe/ingumagui
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+cd /usr/share/inguma
+
+python /usr/share/inguma/ingumagui.py "$@"
--- inguma-0.0.7.2.orig/debian/patches/05_python26_with_keyword
+++ inguma-0.0.7.2/debian/patches/05_python26_with_keyword
@@ -0,0 +1,48 @@
+Index: inguma/scapext.py
+===================================================================
+--- inguma.orig/scapext.py 2010-08-25 16:15:51.000000000 +0200
++++ inguma/scapext.py 2010-08-25 16:16:07.000000000 +0200
+@@ -101,9 +101,9 @@
+ if loctrace:
+ trt[trace_id] = loctrace
+
+- tr = map(lambda x: Gnuplot.Data(x,with="lines"), trt.values())
++ tr = map(lambda x: Gnuplot.Data(x,with_="lines"), trt.values())
+ g = Gnuplot.Gnuplot()
+- world = Gnuplot.File(conf.gnuplot_world,with="lines")
++ world = Gnuplot.File(conf.gnuplot_world,with_="lines")
+ g.plot(world,*tr)
+ return g
+
+Index: inguma/scapy.py
+===================================================================
+--- inguma.orig/scapy.py 2010-08-25 16:15:45.000000000 +0200
++++ inguma/scapy.py 2010-08-25 16:16:07.000000000 +0200
+@@ -3215,9 +3215,9 @@
+ if loctrace:
+ trt[trace_id] = loctrace
+
+- tr = map(lambda x: Gnuplot.Data(x,with="lines"), trt.values())
++ tr = map(lambda x: Gnuplot.Data(x,with_="lines"), trt.values())
+ g = Gnuplot.Gnuplot()
+- world = Gnuplot.File(conf.gnuplot_world,with="lines")
++ world = Gnuplot.File(conf.gnuplot_world,with_="lines")
+ g.plot(world,*tr)
+ return g
+
+Index: inguma/winscapy.py
+===================================================================
+--- inguma.orig/winscapy.py 2010-08-25 16:15:54.000000000 +0200
++++ inguma/winscapy.py 2010-08-25 16:16:07.000000000 +0200
+@@ -3638,9 +3638,9 @@
+ if loctrace:
+ trt[trace_id] = loctrace
+
+- tr = map(lambda x: Gnuplot.Data(x,with="lines"), trt.values())
++ tr = map(lambda x: Gnuplot.Data(x,with_="lines"), trt.values())
+ g = Gnuplot.Gnuplot()
+- world = Gnuplot.File(conf.gnuplot_world,with="lines")
++ world = Gnuplot.File(conf.gnuplot_world,with_="lines")
+ g.plot(world,*tr)
+ return g
+
--- inguma-0.0.7.2.orig/debian/patches/04_scapy_conf
+++ inguma-0.0.7.2/debian/patches/04_scapy_conf
@@ -0,0 +1,14 @@
+Index: inguma/inguma.py
+===================================================================
+--- inguma.orig/inguma.py 2010-08-25 16:04:12.000000000 +0200
++++ inguma/inguma.py 2010-08-25 16:04:31.000000000 +0200
+@@ -1064,7 +1064,8 @@
+ def main():
+
+ if hasScapy:
+- scapy.conf.verb = 0
++ from scapy import config
++ scapy.config.conf.verb = 0
+
+ if not checkArgs():
+ usage()
--- inguma-0.0.7.2.orig/debian/patches/03_syspath
+++ inguma-0.0.7.2/debian/patches/03_syspath
@@ -0,0 +1,27 @@
+Index: inguma-0.0.7.2/inguma.py
+===================================================================
+--- inguma-0.0.7.2.orig/inguma.py 2008-03-28 19:50:58.000000000 +0100
++++ inguma-0.0.7.2/inguma.py 2008-03-28 19:51:22.000000000 +0100
+@@ -30,6 +30,8 @@
+ from lib.core import isIpAddr4
+ from lib.printwrapper import CPrintWrapper
+
++os.chdir("/usr/share/inguma")
++
+ try:
+ if os.name == "nt":
+ import winscapy as scapy
+Index: inguma-0.0.7.2/ingumagui.py
+===================================================================
+--- inguma-0.0.7.2.orig/ingumagui.py 2008-03-28 19:50:58.000000000 +0100
++++ inguma-0.0.7.2/ingumagui.py 2008-03-28 19:51:22.000000000 +0100
+@@ -24,6 +24,9 @@
+
+ import sys
+ import thread
++import os
++
++os.chdir("/usr/share/inguma")
+
+ from qt import *
+ from gui.fmmain import *
--- inguma-0.0.7.2.orig/debian/patches/series
+++ inguma-0.0.7.2/debian/patches/series
@@ -0,0 +1,5 @@
+01_bad_shebang
+02_bad_shebang_dlgabout
+03_syspath
+04_scapy_conf
+05_python26_with_keyword
--- inguma-0.0.7.2.orig/debian/patches/01_bad_shebang
+++ inguma-0.0.7.2/debian/patches/01_bad_shebang
@@ -0,0 +1,20 @@
+Index: inguma-0.0.6/modules/fuzz/snmp/fuzzer.py
+===================================================================
+--- inguma-0.0.6.orig/modules/fuzz/snmp/fuzzer.py 2008-02-25 17:44:05.000000000 +0100
++++ inguma-0.0.6/modules/fuzz/snmp/fuzzer.py 2008-02-25 17:44:12.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/lib/python
++#!/usr/bin/python
+
+ import sys
+ sys.path.append("../../data")
+Index: inguma-0.0.6/modules/fuzz/sybase/fuzzer.py
+===================================================================
+--- inguma-0.0.6.orig/modules/fuzz/sybase/fuzzer.py 2008-02-25 17:44:30.000000000 +0100
++++ inguma-0.0.6/modules/fuzz/sybase/fuzzer.py 2008-02-25 17:44:39.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python2.4
++#!/usr/bin/python
+
+ """
+ MS SQL Server/Sybase Stored Procedures Fuzzing Tool
--- inguma-0.0.7.2.orig/debian/patches/02_bad_shebang_dlgabout
+++ inguma-0.0.7.2/debian/patches/02_bad_shebang_dlgabout
@@ -0,0 +1,10 @@
+Index: inguma-0.0.6/gui/dlgabout.py
+===================================================================
+--- inguma-0.0.6.orig/gui/dlgabout.py 2008-01-27 15:39:28.000000000 +0100
++++ inguma-0.0.6/gui/dlgabout.py 2008-01-27 15:40:13.000000000 +0100
+@@ -1,4 +1,4 @@
+-#!/usr/bin/sh
++#!/usr/bin/python
+
+ """
+ Inguma Penetration Testing Toolkit