@@ -0,0 +1,27 @@
+Maintainer: Juan Angulo Moreno <email@example.com>
+Build-Depends: debhelper (>= 6), libpcap0.8-dev, docbook-to-man
+Description: Simple program to log Instant Messaging activity on the network
+ The imsniff program can be used to log IM activity on the network. It uses
+ libpcap to capture packets and analyzes them, logging conversation, contact
+ lists, etc.
+ Users connecting after imsniff is started can get pretty good results,
+ including complete contact lists and events (displaying a name change, for
+ example). Users already connected will be able to get the conversations, but
+ will miss the other information.
+ The only required parameter is the interface name to listen to. This can be
+ any interface that libpcap supports. A sample imsniff.conf.sample file is
+ imsniff is beta software, for now, only MSN is supported. Others could follow.
+ Author: Carlos Fernandez <firstname.lastname@example.org>
@@ -0,0 +1 @@
@@ -0,0 +1,3 @@
@@ -0,0 +1,30 @@
+imsniff (0.04-4) unstable; urgency=low
+ * Fixed: copyright information. (Closes: #456366)
+ * Upgrade Debhelper to 6.
+ -- Juan Angulo Moreno <email@example.com> Wed, 12 Mar 2008 20:13:13 -0430
+imsniff (0.04-3) unstable; urgency=low
+ * New maintainer. (Closes: #448724).
+ * Added debian/rules: -Wl,--as-needed in the LDFLAGS.
+ * Upgrade Standards-Version 3.7.3.
+ -- Juan Angulo Moreno <firstname.lastname@example.org> Tue, 11 Dec 2007 13:19:38 -0430
+imsniff (0.04-2) unstable; urgency=low
+ * QA upload.
+ * Set maintainer to QA group.
+ * Fix broken watch file (Closes: #449914).
+ -- Nico Golde <email@example.com> Sun, 02 Dec 2007 18:28:43 +0100
+imsniff (0.04-1) unstable; urgency=low
+ * Initial release (Closes: #402351)
+ * Repackaged upstream orig.tgz to get rid of windows binaries.
+ -- Amaya Rodrigo Sastre <firstname.lastname@example.org> Mon, 11 Dec 2006 18:25:15 +0100
@@ -0,0 +1,109 @@
+.\" Title: IMSNIFF
+.\" Author: Amaya Rodrigo Sastre
+.\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
+.\" Date: December 9, 2006
+.TH "IMSNIFF" "8" "December 9, 2006" "" ""
+.\" disable hyphenation
+.\" disable justification (adjust text to left margin only)
+imsniff \- Simple program to log Instant Messaging activity on the network
+\fBimsniff\fR [\fB\-cd\fR\fB\fIchatdir\fR\fR] [\fB\-dd\fR\fB\fIdebugdir\fR\fR] [\fB\-v*\fR\fB\fIverbose\fR\fR] [\fB\-p\fR\fB\fIpromisc\fR\fR] [\fB\-d\fR\fB\fIdaemonize\fR\fR] [\fB\-offset\fR\fB\fIdata_offset\fR\fR] [\fB\-help\fR\fB\fIN/A\fR\fR] [\fBinterface\fR]
+This manual page documents briefly the
+This manual page was written for the
+distribution because the original program does not have a manual page. Instead, it has documentation in the
+format; see below.
+can be used to log IM activity on the network. It uses libpcap to capture packets and analyzes them, logging conversation, contact lists, etc.
+Users connecting after imsniff is started can get pretty good results, including complete contact lists and events (displaying a name change, for example). Users already connected will be able to get the conversations, but will miss the other information.
+The only required parameter is the interface name to listen to. This can be any interface that libpcap supports. A sample imsniff.conf.sample file is included.
+N/A. Display help.
+Directory where conversations will be stored.
+debugdir. Directory where logs will be stored. These logs contain debug information as well as certain MSN events.
+verbose. Debug level. The more v's (or higher the number in the config file), the more info that is dumped. For regular usage, use 1 or 2. More than that will dump a lot of useless stuff.
+promisc. Put the device in promiscuous mode.
+data_offset. See below.
+Interface to use.
+.SH "DATA OFFSET"
+The offset (in this context) is the length of the datalink header when capturing packets. This is an important number because we need to skip this header when processing packets. For ethernet, this number is 14, and IMsniff knows about it. If you use a different interface, you might have to help IMsniff by providing the number yourself. Por example:
+imniff ppp0 \-offset 4
+How do you figure out this number? The easiest way is just try different numbers (and keep your own MSN connection busy (type something) until IMsniff starts dumping conversations. The number is never high anyway. A few tries should always do.
+If you have to use this, once it's working please drop me a note telling me what interface type IMsnif reported, and the offset you used. I will add this to the code so next versions don't have to be tuned manually.
+Beta version. Seems to work decently.
+.SH "SUPPORTED PROTOCOLS"
+For now, only MSN. Others could follow.
+This manual page was written by Amaya Rodrigo Sastre
+system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the
+General Public License, Version 2 any later version published by the Free Software Foundation.
+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL.
+\fBAmaya Rodrigo Sastre\fR
+.IP "" 3n
+Copyright \(co 2006 Amaya Rodrigo Sastre
@@ -0,0 +1,2 @@
@@ -0,0 +1,35 @@
+This package was debianized by Amaya Rodrigo Sastre <email@example.com> on
+Sat, 9 Dec 2006 18:39:35 0100.
+It was downloaded from http://sourceforge.net/projects/im-snif/
+ Carlos Fernandez Sanz <firstname.lastname@example.org>
+ Copyright (C) 2003-2008, Carlos Fernandez Sanz
+ 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; either version 2 of the License, or
+ (at your option) any later version.
+ 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 systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+The Debian packaging is (C) 2006, Amaya Rodrigo Sastre <email@example.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
@@ -0,0 +1,73 @@
+# -*- 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.
+CFLAGS = -Wall -g
+LDFLAGS = -Wl,--as-needed
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+ CFLAGS += -O2
+ # Add here commands to configure the package.
+ touch configure-stamp
+ # Add here commands to compile the package.
+ g++ $(LDFLAGS) -o imsniff src/imsniff.cpp src/util.cpp src/msn_conntrack.cpp src/msn_handlers.cpp -lpcap src/pcap_stuff.cpp
+ touch $@
+ rm -f build-stamp configure-stamp imsniff
+ # Add here commands to clean up after the build process.
+ dh_clean -k
+# 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_installexamples docs/imsniff.conf.sample
+ dh_install imsniff usr/bin/
+ dh_installman debian/imsniff.8
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
@@ -0,0 +1 @@