--- 4g8-1.0.orig/4g8.1 +++ 4g8-1.0/4g8.1 @@ -0,0 +1,42 @@ +.TH 4g8 "1" "August 2007" "4g8 1.0" "User Commands" +.SH NAME +4g8 \- Packet Capture and Interception for Switched Networks +.SH SYNOPSIS +.B 4g8 +\fI-i -g -G -s -S \fR[\fI-w file\fR] [\fI-Xh\fR] +.SH DESCRIPTION +4G8 allows you to capture traffic from a third party in a switched +environment at the expense of a slight increase in latency to that third +party host. Utilizing ARP cache poisoning, packet capture and packet +reconstruction techniques, 4G8 works with nearly all TCP, ICMP and UDP IPv4 +traffic flows. + +.SS "Required parameters:" +.TP +\fB\-g\fR gw_ip +IP address of gateway to impersonate +.TP +\fB\-G\fR gw_mac +MAC address of gateway to impersonate +.TP +\fB\-s\fR host_ip +IP address of victim host +.HP +\fB\-S\fR host_mac MAC address of victim host +.SH OPTIONS +.TP +\fB\-h\fR +Display this message +.TP +\fB\-i\fR device +Device to listen on +.TP +\fB\-w\fR file +Write captured data to file +.TP +\fB\-X\fR +Dump the packet in hex and ascii +.SH AUTHORS +4g8 was written by Darren Bounds + +This manpage was written by Marcela Tiznado --- 4g8-1.0.orig/src/Makefile.in +++ 4g8-1.0/src/Makefile.in @@ -386,7 +386,7 @@ all: - strip @BINS@ + #strip @BINS@ cp @BINS@ $(top_srcdir) clean: --- 4g8-1.0.orig/src/globals.h +++ 4g8-1.0/src/globals.h @@ -31,7 +31,9 @@ #include #include #include +#ifdef HAVE_NET_BPF_H #include +#endif #include #include #include --- 4g8-1.0.orig/src/main.h +++ 4g8-1.0/src/main.h @@ -23,10 +23,17 @@ #ifndef __MAIN_H #define __MAIN_H +#ifndef __HAVE_CONFIG_H +#define __HAVE_CONFIG_H +#include "../config.h" +#endif + #include #include #include +#ifdef HAVE_NET_BPF_H #include +#endif #include #include #include --- 4g8-1.0.orig/debian/changelog +++ 4g8-1.0/debian/changelog @@ -0,0 +1,21 @@ +4g8 (1.0-3) unstable; urgency=low + + * rules: install man page. Closes: #447807 + + -- LaMont Jones Thu, 08 Nov 2007 20:54:54 -0700 + +4g8 (1.0-2) unstable; urgency=low + + * add 4g8.1 manpage. Closes: #420627 + * only include net/bpf.h if present. Closes: #438808 + * update standards-version, document git repository + * fix clean target in debian/rules + * have dh_strip handle stripping of executables. Closes: #436254 + + -- LaMont Jones Wed, 12 Sep 2007 08:28:19 -0600 + +4g8 (1.0-1) unstable; urgency=low + + * New package + + -- LaMont Jones Mon, 26 Mar 2007 16:19:06 -0600 --- 4g8-1.0.orig/debian/control +++ 4g8-1.0/debian/control @@ -0,0 +1,18 @@ +Source: 4g8 +Priority: optional +Maintainer: LaMont Jones +Build-Depends: debhelper (>> 4.0.0), libnet1-dev (>=1.1.2.1), libpcap-dev, autotools-dev +Standards-Version: 3.7.2.2 +XS-Vcs-Browser: http://git.debian.org/?p=users/lamont/4g8.git +XS-Vcs-Git: git://git.debian.org/~lamont/4g8.git + +Package: 4g8 +Section: net +Architecture: any +Depends: ${shlibs:Depends} ${misc:Depends} +Description: Packet Capture and Interception for Switched Networks + 4G8 allows you to capture traffic from a third party in a switched + environment at the expense of a slight increase in latency to that + third party host. Utilizing ARP cache poisoning, packet capture and + packet reconstruction techniques, 4G8 works with nearly all TCP, ICMP + and UDP IPv4 traffic flows. --- 4g8-1.0.orig/debian/rules +++ 4g8-1.0/debian/rules @@ -0,0 +1,89 @@ +#!/usr/bin/make -f +# 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 + + +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 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + cp /usr/share/misc/config.guess /usr/share/misc/config.sub . + chmod u+x ./configure + ./configure --prefix=/usr --mandir=/usr/share/man + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install prefix=$$(pwd)/debian/4g8/usr \ + mandir=$$(pwd)/debian/4g8/usr/share/man + + +# 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 4g8.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# d_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 --- 4g8-1.0.orig/debian/copyright +++ 4g8-1.0/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by LaMont Jones + +It was downloaded from http://www.intrusense.com/software/forgate/ + +Upstream Author: Darren Bounds + +Copyright: + +This program is copyright under the GNU Public License 2 (GPL), a copy +of which may be found in /usr/share/common-licenses/GPL-2 --- 4g8-1.0.orig/debian/compat +++ 4g8-1.0/debian/compat @@ -0,0 +1 @@ +4