--- stegdetect-0.6.orig/debian/compat +++ stegdetect-0.6/debian/compat @@ -0,0 +1 @@ +4 --- stegdetect-0.6.orig/debian/changelog +++ stegdetect-0.6/debian/changelog @@ -0,0 +1,103 @@ +stegdetect (0.6-6) unstable; urgency=low + + * Split changes into multiple patches managed with quilt + + -- Ben Hutchings Wed, 30 Jul 2008 19:55:46 +0100 + +stegdetect (0.6-5) unstable; urgency=low + + * QA upload + - Changed maintainer to QA group + * Changed to non-native package + * Removed build-dependency on gcc-3.4 (Closes: #440429) + * Readded rules.ini from John the Ripper (Closes: #345230) + * Added binary-indep target to debian/rules (Closes: #395773) + * Updated Standards-Version to 3.8.0 + - Modified to use shared libmagic (Closes: #421631) + * Noted libjpeg code in debian/copyright (this version of the library + has additional hooks so we cannot use the shared libjpeg) + * Removed empty directories + + -- Ben Hutchings Wed, 30 Jul 2008 02:03:42 +0100 + +stegdetect (0.6-4) unstable; urgency=low + + * Fixed some typo in manpage (Closes: #402515) + * Fixed some minor problems and updated to last magic files (Closes: #402516) + + -- Mon, 11 Dec 2006 11:23:10 +0100 + +stegdetect (0.6-3) unstable; urgency=low + + * Removed files that are present in other packages and + libraries (Closes: #318485) + + -- Samuele Giovanni Tonon Mon, 18 Jul 2005 12:25:02 +0200 + +stegdetect (0.6-2) unstable; urgency=low + + * The "Forgive me guys, i'm in love" Release + * Added Conflicts with libjpeg-progs (Closes: #318166) + + -- Samuele Giovanni Tonon Thu, 14 Jul 2005 10:16:03 +0200 + +stegdetect (0.6-1) unstable; urgency=low + + * New Upstream Release (Closes: #317521) + + -- Samuele Giovanni Tonon Wed, 13 Jul 2005 10:57:21 +0200 + +stegdetect (0.5-7) unstable; urgency=low + + * Recompiling against libevent1 newer version to make it work better + (Closes: #294400) + + -- Samuele Giovanni Tonon Wed, 9 Feb 2005 20:14:58 +0100 + +stegdetect (0.5-6) unstable; urgency=low + + * Added Patch from Andreas Jochens (many thanks!) to make it compile + against gcc-3.4 (Closes: #263818) + + -- Samuele Giovanni Tonon Mon, 16 Aug 2004 16:31:26 +0200 + +stegdetect (0.5-5) unstable; urgency=low + + * Recompiled against libevent1, thanks to Christian Surchi for + reporting it (Closes: #216587) + + -- Samuele Giovanni Tonon Thu, 13 Nov 2003 17:10:32 +0100 + +stegdetect (0.5-4) unstable; urgency=low + + * Modified Description field to give a better description to xsteg + as proposed by Marek Habersack (Closes: #209969) + + -- Samuele Giovanni Tonon Tue, 16 Sep 2003 21:10:31 +0200 + +stegdetect (0.5-3) unstable; urgency=low + + * Modified file/Makefile.am and file/Makefile.in to make + stegdetect compile against gcc-3.3 as pointed out + by Daniel Schepler (thanks) (Closes: #196460) + + -- Samuele Giovanni Tonon Mon, 9 Jun 2003 11:48:19 +0200 + +stegdetect (0.5-2) unstable; urgency=low + + * The "i'm so stupid, please forgive me" Release + * added binaries to stegdetect package (Closes: #163934) + * Description improvement for stegdetect (Closes: #163720) + * Description improvement for xsteg (Closes: #163719) + * Added /usr/share/stegbreak/rules.ini file + * Modified stegbreak.1 page to suit /usr/share/stegbreak/rules.ini + + -- Samuele Giovanni Tonon Mon, 14 Oct 2002 14:26:41 +0200 + +stegdetect (0.5-1) unstable; urgency=low + + * Initial Release (Closes: Bug#162420) + * added man page for xsteg + * modified configure files + + -- Samuele Giovanni Tonon Tue, 1 Oct 2002 15:45:16 +0200 --- stegdetect-0.6.orig/debian/dirs +++ stegdetect-0.6/debian/dirs @@ -0,0 +1,4 @@ +usr/bin +etc/stegdetect +etc/stegbreak +usr/share/stegdetect --- stegdetect-0.6.orig/debian/stegdetect.files +++ stegdetect-0.6/debian/stegdetect.files @@ -0,0 +1,4 @@ +usr/bin/stegdetect +usr/bin/stegbreak +usr/share/man/man1/stegdetect.1 +usr/share/man/man1/stegbreak.1 --- stegdetect-0.6.orig/debian/copyright +++ stegdetect-0.6/debian/copyright @@ -0,0 +1,116 @@ +This package was debianized by Samuele Giovanni Tonon on +Wed, 25 Sep 2002 23:19:02 +0200. + +It was downloaded from http://www.outguess.org/download.php + +Upstream Authors: Niels Provos , + Solar Designer, + Ian F. Darwin and others + +Copyright: + + Copyright 2001 Niels Provos + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Niels Provos. + 4. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + +The following notice applies to the file rules.ini, derived from John +the Ripper: + + Copyright (c) 1996-98 by Solar Designer + + This version of John the Ripper is hereby being made available to you + under the terms of the GNU General Public License version 2 as published + by the Free Software Foundation. + + John the Ripper 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. + +On Debian systems, the full text of the GNU General Public License +version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. + +--- + +The following notices apply to libjpeg which is included in +stegdetect: + + The authors make NO WARRANTY or representation, either express or + implied, with respect to this software, its quality, accuracy, + merchantability, or fitness for a particular purpose. This + software is provided "AS IS", and you, its user, assume the entire + risk as to its quality and accuracy. + + This software is copyright (C) 1991-1998, Thomas G. Lane. + All Rights Reserved except as specified below. + + Permission is hereby granted to use, copy, modify, and distribute + this software (or portions thereof) for any purpose, without fee, + subject to these conditions: + (1) If any part of the source code for this software is + distributed, then this README file must be included, with this + copyright and no-warranty notice unaltered; and any additions, + deletions, or changes to the original files must be clearly + indicated in accompanying documentation. + (2) If only executable code is distributed, then the accompanying + documentation must state that "this software is based in part on + the work of the Independent JPEG Group". + (3) Permission for use of this software is granted only if the + user accepts full responsibility for any undesirable consequences; + the authors accept NO LIABILITY for damages of any kind. + + These conditions apply to any software derived from or based on + the IJG code, not just to the unmodified library. If you use our + work, you ought to acknowledge us. + + Permission is NOT granted for the use of any IJG author's name or + company name in advertising or publicity relating to this software + or products derived from it. This software may be referred to + only as "the Independent JPEG Group's software". + + We specifically permit and encourage the use of this software as + the basis of commercial products, provided that all warranty or + liability claims are assumed by the product vendor. + + ansi2knr.c is included in this distribution by permission of + L. Peter Deutsch, sole proprietor of its copyright holder, Aladdin + Enterprises of Menlo Park, CA. ansi2knr.c is NOT covered by the + above copyright and conditions, but instead by the usual + distribution terms of the Free Software Foundation; principally, + that you must include source code if you redistribute it. (See + the file ansi2knr.c for full details.) However, since ansi2knr.c + is not needed as part of any program generated from the IJG code, + this does not limit you more than the foregoing paragraphs do. + + The Unix configuration script "configure" was produced with GNU + Autoconf. It is copyright by the Free Software Foundation but is + freely distributable. The same holds for its supporting scripts + (config.guess, config.sub, ltconfig, ltmain.sh). Another support + script, install-sh, is copyright by M.I.T. but is also freely + distributable. --- stegdetect-0.6.orig/debian/README.Debian +++ stegdetect-0.6/debian/README.Debian @@ -0,0 +1,8 @@ +stegdetect for Debian +--------------------- + +i divided stegdetect in two main packages: +stegdetect which contains stegdetect and stegbreak +xsteg which contain xsteg + + -- Samuele Giovanni Tonon , Thu, 26 Sep 2002 15:01:20 +0200 --- stegdetect-0.6.orig/debian/rules +++ stegdetect-0.6/debian/rules @@ -0,0 +1,124 @@ +#!/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. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/quilt/quilt.make + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# 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 + +config.status: patch + dh_testdir + # Add here commands to configure the package. + automake-1.4 + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --datadir=\$${prefix}/share/stegdetect + + +#Architecture + +build: build-stamp +build-stamp: config.status + + # Add here commands to compile the arch part of the package. + $(MAKE) + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp #CONFIGURE-STAMP# + + # Add here commands to clean up after the build process. + ! test -f Makefile || $(MAKE) distclean + ! test -f file/Makefile || $(MAKE) -C file distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + + dh_clean jpeg-6b/Makefile jpeg-6b/jconfig.h + +install: + dh_testdir -a + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -Pdebian/tmp -pstegdetect + dh_installdirs -Pdebian/tmp -pxsteg + dh_installdirs -s + + # Add here commands to install the arch part of the package into + # debian/tmp. + + $(MAKE) install prefix=$(CURDIR)/debian/stegdetect/usr + cp $(CURDIR)/debian/stegbreak-rules.ini $(CURDIR)/debian/stegdetect/usr/share/stegbreak/rules.ini + cp $(CURDIR)/debian/xsteg.1 $(CURDIR)/debian/xsteg/usr/share/man/man1/xsteg.1 + mv $(CURDIR)/debian/stegdetect/usr/bin/xsteg $(CURDIR)/debian/xsteg/usr/bin/xsteg + rm -rf $(CURDIR)/debian/stegdetect/usr/man + + #dh_install + dh_install -s + + #dh_movefiles + +binary-arch: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# 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-indep: + +binary: binary-arch binary-indep +.PHONY: build clean binary-arch binary-indep binary install patch unpatch --- stegdetect-0.6.orig/debian/xsteg.files +++ stegdetect-0.6/debian/xsteg.files @@ -0,0 +1,2 @@ +usr/bin/xsteg +usr/share/man/man1/xsteg.1 --- stegdetect-0.6.orig/debian/xsteg.dirs +++ stegdetect-0.6/debian/xsteg.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/share/man/man1 --- stegdetect-0.6.orig/debian/stegdetect.dirs +++ stegdetect-0.6/debian/stegdetect.dirs @@ -0,0 +1,3 @@ +usr/bin +usr/share/man/man1 +usr/share/stegbreak --- stegdetect-0.6.orig/debian/control +++ stegdetect-0.6/debian/control @@ -0,0 +1,32 @@ +Source: stegdetect +Section: utils +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 4.0.0), autotools-dev, libevent-dev, libgtk-dev, libmagic-dev, quilt, automake1.4 +Standards-Version: 3.8.0 + +Package: stegdetect +Architecture: any +Depends: ${shlibs:Depends}, wenglish | wordlist, libmagic1 +Suggests: libjpeg-progs +Description: Detect and extract steganography messages inside JPEG + Stegdetect is an automated tool for detecting steganographic content + in images. + It is capable of detecting several different steganographic methods + to embed hidden information in JPEG images. + Currently, the detectable schemes are: + jsteg, jphide (unix and windows), invisible secrets, outguess 01.3b, + F5 (header analysis), appendX and camouflage. + Stegbreak is used to launch dictionary attacks + against JSteg-Shell, JPHide and OutGuess 0.13b. + +Package: xsteg +Architecture: any +Depends: ${shlibs:Depends}, stegdetect +Description: Graphical frontend to stegdetect + Xsteg is a graphical frontend to stegdetect, an automated tool for + detecting steganographic content in images (only JPEG). + Steganography is a method of hiding information within image files. + . + This package is not required to run stegdetect + --- stegdetect-0.6.orig/debian/README.source +++ stegdetect-0.6/debian/README.source @@ -0,0 +1,4 @@ +Changes to upstream source are organised as a quilt patch series. + +Run debian/rules patch to apply all patches and debian/rules unpatch +to remove them. See the quilt documentation for more information. --- stegdetect-0.6.orig/debian/xsteg.1 +++ stegdetect-0.6/debian/xsteg.1 @@ -0,0 +1,44 @@ +.\" $OpenBSD: mdoc.template,v 1.6 2001/02/03 08:22:44 niklas Exp $ +.\" +.\" The following requests are required for all man pages. +.Dd September 26, 2002 +.Dt XSTEG 1 +.Os +.Sh NAME +.Nm xsteg +.Nd graphical frontend to stegdetect and stegbreak +.Sh SYNOPSIS +.Nm xsteg +.Sh DESCRIPTION +The +.Nm +utility execute on the chosen file stegdetect with the option specified +in the main window ; if stegdetect find some type of steganography into +the given file, then stegbreak is executed against the file, +to try to discover the key through a dictionary attack. +.Pp +.Pp +The +.Nm +utility indicates the accuracy of the detection with a number of stars +behind the detected system. +.Pp +.Sh ERRORS +.Nm +works only for +.Tn JPEG +images. +.Pp +.Sh SEE ALSO +.Xr stegbreak 1 +.Xr stegdetect 1 +.Sh ACKNOWLEDGEMENTS +This product includes software developed by Ian F. Darwin and others. +The +.Nm +utility uses Darwin's file magic to identify data appended at the end of +an image. +.Sh AUTHORS +The +.Nm +utility has been developed by Niels Provos. --- stegdetect-0.6.orig/debian/stegbreak-rules.ini +++ stegdetect-0.6/debian/stegbreak-rules.ini @@ -0,0 +1,59 @@ +# +# This file was originally part of John the Ripper password cracker, +# Copyright (c) 1996-98 by Solar Designer +# +# Wordlist mode rules +[List.Rules:Wordlist] +# Try words as they are +: +# Lowercase every pure alphanumeric word +-c >3!?XlQ +# Capitalize every pure alphanumeric word +-c >2(?a!?XcQ +# Lowercase and pluralize pure alphabetic words +<*>2!?Alp +# Lowercase pure alphabetic words and append '1' +<*>2!?Al$1 +# Capitalize pure alphabetic words and append '1' +-c <*>2!?Ac$1 +# Duplicate reasonably short pure alphabetic words (fred -> fredfred) +<7>1!?Ald +# Lowercase and reverse pure alphabetic words +>3!?AlMrQ +# Prefix pure alphabetic words with '1' +>2!?Al^1 +# Uppercase pure alphanumeric words +-c >2!?XuQ +# Lowercase pure alphabetic words and append a digit or simple punctuation +<*>2!?Al$[2!37954860.?] +# Words containing punctuation, which is then squeezed out, lowercase +/?p@?p>3l +# Words with vowels removed, lowercase +/?v@?v>3l +# Words containing whitespace, which is then squeezed out, lowercase +/?w@?w>3l +# Capitalize and duplicate short pure alphabetic words (fred -> FredFred) +-c <7>1!?Acd +# Capitalize and reverse pure alphabetic words (fred -> derF) +-c <+>2!?Acr +# Reverse and capitalize pure alphabetic words (fred -> Derf) +-c >2!?AMrQc +# Lowercase and reflect pure alphabetic words (fred -> fredderf) +<7>1!?AlMrQrf +# Uppercase the last letter of pure alphabetic words (fred -> freD) +-c <+>2!?AMrQcr +# Prefix pure alphabetic words with '2' or '4' +>2!?Al^[24] +# Capitalize pure alphabetic words and append a digit or simple punctuation +-c <*>2!?Ac$[2!3957468.?0] +# Prefix pure alphabetic words with digits +>2!?Al^[379568] +# Capitalize and pluralize pure alphabetic words of reasonable length +-c <*>2!?Acp +# Lowercase/capitalize pure alphabetic words of reasonable length and convert: +# crack -> cracked, crack -> cracking +<*>2!?Al[PI] +-c <*>2!?Ac[PI] +# Try the second half of split passwords +-s x** +-s-c x**MlQ --- stegdetect-0.6.orig/debian/patches/302_no-jpeg-progs.diff +++ stegdetect-0.6/debian/patches/302_no-jpeg-progs.diff @@ -0,0 +1,29 @@ +--- stegdetect-0.6.orig/jpeg-6b/makefile.cfg ++++ stegdetect-0.6/jpeg-6b/makefile.cfg +@@ -194,16 +194,16 @@ + # Installation rules: + + install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom @FORCE_INSTALL_LIB@ +- $(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg +- $(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg +- $(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran +- $(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom +- $(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom +- $(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext) +- $(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext) +- $(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext) +- $(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext) +- $(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext) ++ #$(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg ++ #$(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg ++ #$(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran ++ #$(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom ++ #$(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom ++ #$(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext) ++ #$(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext) ++ #$(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext) ++ #$(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext) ++ #$(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext) + + install-lib: libjpeg.$(A) install-headers + $(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A) --- stegdetect-0.6.orig/debian/patches/101_include-time-h.diff +++ stegdetect-0.6/debian/patches/101_include-time-h.diff @@ -0,0 +1,10 @@ +--- stegdetect-0.6.orig/stegbreak.c ++++ stegdetect-0.6/stegbreak.c +@@ -40,6 +40,7 @@ + #include + #include + #include ++#include + + #include + #include --- stegdetect-0.6.orig/debian/patches/series +++ stegdetect-0.6/debian/patches/series @@ -0,0 +1,4 @@ +101_include-time-h.diff +301_use-libmagic.diff +302_no-jpeg-progs.diff +303_fix-paths.diff --- stegdetect-0.6.orig/debian/patches/303_fix-paths.diff +++ stegdetect-0.6/debian/patches/303_fix-paths.diff @@ -0,0 +1,24 @@ +--- stegdetect-0.6.orig/stegbreak.1 ++++ stegdetect-0.6/stegbreak.1 +@@ -33,7 +33,7 @@ + in the wordlist. The rules follow the same syntax as in Solar + Designers password cracking program John the Ripper. The default + is +-.Pa rules.ini . ++.Pa /usr/share/stegbreak/rules.ini . + .It Fl f Ar wordlist + Specifies the file that contains the words for the dictionary attack. + The default is +@@ -83,10 +83,10 @@ + assuming that information has been embedded with + .Tn jphide . + .Sh FILES +-.Bl -tag -width /usr/local/share/stegbreak/rules.ini -compact ++.Bl -tag -width /usr/share/stegbreak/rules.ini -compact + .It Pa /usr/share/dict/words + default wordfile for the dictionary attack. +-.It Pa /usr/local/share/stegbreak/rules.ini ++.It Pa /usr/share/stegbreak/rules.ini + rules on how to manipulate words for the dictionary attack, from + John the Ripper. + .El --- stegdetect-0.6.orig/debian/patches/301_use-libmagic.diff +++ stegdetect-0.6/debian/patches/301_use-libmagic.diff @@ -0,0 +1,135 @@ +--- stegdetect-0.6.orig/common.h ++++ stegdetect-0.6/common.h +@@ -53,6 +53,9 @@ + + char *fgetl(char *, int, FILE *); + int file_hasextension(char *, char *); ++int file_init(void); ++int file_process(unsigned char *, int); ++extern int noprint; + + int is_random(u_char *, int); + +--- stegdetect-0.6.orig/Makefile.am ++++ stegdetect-0.6/Makefile.am +@@ -5,10 +5,12 @@ + JPEGLIB = -L$(JPEGDIR) -ljpeg + JPEGDEP = $(JPEGDIR)/libjpeg.a + +-FILEDIR = ./file +-FILEINC = -I$(FILEDIR) +-FILELIB = -L$(FILEDIR) -lfile +-FILEDEP = $(FILEDIR)/libfile.a ++#FILEDIR = ./file ++#FILEINC = -I$(FILEDIR) ++#FILELIB = -L$(FILEDIR) -lfile ++#FILEDEP = $(FILEDIR)/libfile.a ++FILEINC = ++FILELIB = -lmagic + + GTKINC = @GTKINC@ + GTKLIB = @GTKLIB@ +@@ -17,7 +19,8 @@ + + LIBS = $(JPEGLIB) + +-SUBDIRS = jpeg-6b file ++#SUBDIRS = jpeg-6b file ++SUBDIRS = jpeg-6b + + man_MANS = stegdetect.1 stegbreak.1 + +@@ -51,10 +54,10 @@ + stegbreak_DEPENDENCIES = @BFOBJ@ + + stegcompare_SOURCES = $(CSRCS) stegcompare.c +-stegcompare_LDADD = @LIBOBJS@ $(LIBS) ++stegcompare_LDADD = @LIBOBJS@ $(LIBS) $(FILELIB) + + stegdeimage_SOURCES = $(CSRCS) stegdeimage.c +-stegdeimage_LDADD = @LIBOBJS@ $(LIBS) ++stegdeimage_LDADD = @LIBOBJS@ $(LIBS) $(FILELIB) + + xsteg_SOURCES = xsteg.c xsteg.h xsteg_xpm.c + xsteg_LDADD = @LIBOBJS@ $(GTKLIB) $(EVENTLIB) +--- stegdetect-0.6.orig/common.c ++++ stegdetect-0.6/common.c +@@ -38,6 +38,7 @@ + + #include + #include ++#include + + #include "config.h" + #include "jphide_table.h" +@@ -732,6 +733,26 @@ + return (strcasecmp(name + nlen - elen, ext) == 0); + } + ++static magic_t magic_handle; ++ ++int file_init(void) ++{ ++ magic_handle = magic_open(MAGIC_NONE); ++ if (!magic_handle) ++ return -1; ++ return magic_load(magic_handle, "/usr/share/file/magic"); ++} ++ ++int file_process(unsigned char *buf, int n) ++{ ++ const char *format = magic_buffer(magic_handle, buf, n); ++ if (!noprint) ++ fputs(format ? format : "data", stdout); ++ return !!format; ++} ++ ++int noprint = 1; ++ + #define NBUCKETS 64 + + u_char table[256]; +--- stegdetect-0.6.orig/break_jsteg.c ++++ stegdetect-0.6/break_jsteg.c +@@ -42,7 +42,7 @@ + #include + + #include +-#include ++/*#include */ + + #include "config.h" + #include "common.h" +--- stegdetect-0.6.orig/stegbreak.c ++++ stegdetect-0.6/stegbreak.c +@@ -43,7 +43,7 @@ + #include + + #include +-#include ++/*#include */ + + #include "config.h" + #include "common.h" +--- stegdetect-0.6.orig/stegdetect.c ++++ stegdetect-0.6/stegdetect.c +@@ -42,7 +42,7 @@ + #include + + #include +-#include ++/*#include */ + + #include "common.h" + #include "extraction.h" +--- stegdetect-0.6.orig/break_outguess.c ++++ stegdetect-0.6/break_outguess.c +@@ -42,7 +42,7 @@ + #include + + #include +-#include ++/*#include */ + + #include "config.h" + #include "common.h" --- stegdetect.c.org 2009-08-16 18:02:41.000000000 -0400 +++ stegdetect-0.6/stegdetect.c 2009-08-16 18:02:31.000000000 -0400 @@ -78,7 +78,7 @@ float DCThist[257]; float scale = 1; /* Sensitivity scaling */ -static int debug = 0; +/* static int debug = 0; */ static int quiet = 0; static int ispositive = 0; /* Current images contain stego */ static char *transformname; /* Current transform name */