--- doscan-0.3.1.orig/config.h.in +++ doscan-0.3.1/config.h.in @@ -76,9 +76,11 @@ /* Define to empty if `const' does not conform to ANSI C. */ #undef const -/* Define as `__inline' if that's what the C compiler calls it, or to nothing - if it is not supported. */ +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus #undef inline +#endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc @@ -95,3 +97,4 @@ #else #include #endif + --- doscan-0.3.1.orig/debian/dirs +++ doscan-0.3.1/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +usr/share/man/man1 --- doscan-0.3.1.orig/debian/compat +++ doscan-0.3.1/debian/compat @@ -0,0 +1 @@ +4 --- doscan-0.3.1.orig/debian/rules +++ doscan-0.3.1/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Based on sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp + +build-stamp: config.status + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install prefix=$(CURDIR)/debian/doscan/usr + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# 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 --- doscan-0.3.1.orig/debian/control +++ doscan-0.3.1/debian/control @@ -0,0 +1,19 @@ +Source: doscan +Section: net +Priority: optional +Maintainer: Florian Weimer +Build-Depends: debhelper (>= 4.0.0), libpcre3-dev +Standards-Version: 3.6.1 + +Package: doscan +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: port scanner for discovering services on large networks + doscan is a tool to discover TCP services on your network. It is + designed for scanning a single ports on a large network. doscan + contacts many hosts in parallel, using standard TCP sockets provided + by the operating system. It is possible to send strings to remote + hosts, and collect the banners they return. + . + There are better tools for scanning many ports on a small set of + hosts, for example nmap. --- doscan-0.3.1.orig/debian/docs +++ doscan-0.3.1/debian/docs @@ -0,0 +1,4 @@ +NEWS +README +TODO +doc/design.txt --- doscan-0.3.1.orig/debian/copyright +++ doscan-0.3.1/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Florian Weimer , +who is also the upstream author. + +It was downloaded from . + +Copyright: + +doscan - Denial Of Service Capable Auditing of Networks +Copyright (C) 2003 Florian Weimer + +This program 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; either version 2 of the License, or +(at your option) any later version. + +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. + + +A copy of the GNU General Public License, version 2, can be found in +/usr/share/common-licenses/GPL or in the COPYING file included with the +source. --- doscan-0.3.1.orig/debian/changelog +++ doscan-0.3.1/debian/changelog @@ -0,0 +1,39 @@ +doscan (0.3.1-3) unstable; urgency=low + + * Fix building with GCC 4.3. Closes: #417158. + + -- Florian Weimer Sat, 02 Feb 2008 12:32:44 +0100 + +doscan (0.3.1-2) unstable; urgency=low + + * Fix GCC 4.0 warnings. + + -- Florian Weimer Tue, 12 Jul 2005 12:54:36 +0200 + +doscan (0.3.1-1) unstable; urgency=low + + * New upstream version + + -- Florian Weimer Wed, 11 May 2005 09:43:07 +0200 + +doscan (0.3.0-1) unstable; urgency=low + + * New upstream version. Removes encumbered protocol modules. + + -- Florian Weimer Sat, 22 Jan 2005 09:30:56 +0100 + +doscan (0.2.9-1) unstable; urgency=low + + * New upstream release + * Fix transposed letters in description. Closes: 266072. + * Do not automatically update config.guess and config.sub because it + causes problems with svn-buildpackage. + + -- Florian Weimer Mon, 30 Aug 2004 10:45:18 +0200 + +doscan (0.2.8-1) unstable; urgency=low + + * Initial Release. Closes: #222141. + + -- Florian Weimer Tue, 13 Jul 2004 14:01:30 +0200 + --- doscan-0.3.1.orig/src/half_duplex.cc +++ doscan-0.3.1/src/half_duplex.cc @@ -22,6 +22,7 @@ #include #include +#include #include #include #include --- doscan-0.3.1.orig/src/event_queue_epoll.cc +++ doscan-0.3.1/src/event_queue_epoll.cc @@ -22,6 +22,8 @@ #include #include +#include +#include #include #if defined(__linux__) && defined(HAVE_SYS_EPOLL_H) @@ -63,13 +65,10 @@ switch (w) { case fd_handler::watch_read: return EPOLLIN | EPOLLERR; - break; case fd_handler::watch_write: return EPOLLOUT | EPOLLERR; - break; case fd_handler::watch_read_write: return EPOLLIN | EPOLLOUT | EPOLLERR; - break; default: abort(); } --- doscan-0.3.1.orig/src/subnets.cc +++ doscan-0.3.1/src/subnets.cc @@ -38,6 +38,7 @@ #include #include #include +#include #include typedef struct { --- doscan-0.3.1.orig/src/proto_http_proxy.cc +++ doscan-0.3.1/src/proto_http_proxy.cc @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include --- doscan-0.3.1.orig/src/tcp_server.cc +++ doscan-0.3.1/src/tcp_server.cc @@ -22,6 +22,8 @@ #include #include +#include +#include #include #include #include --- doscan-0.3.1.orig/src/scan_tcp.cc +++ doscan-0.3.1/src/scan_tcp.cc @@ -23,6 +23,7 @@ #include #include +#include #include #include #include --- doscan-0.3.1.orig/src/event_queue_poll.cc +++ doscan-0.3.1/src/event_queue_poll.cc @@ -22,6 +22,8 @@ #include #include +#include +#include #include void @@ -66,13 +68,10 @@ switch (w) { case fd_handler::watch_read: return POLLIN; - break; case fd_handler::watch_write: return POLLOUT; - break; case fd_handler::watch_read_write: return POLLIN | POLLOUT; - break; default: abort(); } --- doscan-0.3.1.orig/src/scan_udp.cc +++ doscan-0.3.1/src/scan_udp.cc @@ -21,6 +21,7 @@ #include "scan_udp.h" #include +#include #include #include --- doscan-0.3.1.orig/doc/doscan.1 +++ doscan-0.3.1/doc/doscan.1 @@ -556,8 +556,6 @@ .B doscan tries to split the load across your whole network, this obviously fails if the next hop cannot bear the traffic. -.SH "REPORTING BUGS" -Report bugs to . .SH AUTHOR .B doscan was written by Florian Weimer.