debian/0000755000000000000000000000000012114307705007166 5ustar debian/README.Debian-devel0000644000000000000000000000041512114307705012324 0ustar frackzip Debian source package maintenance ------------------------------------------ After unpacking the Debian source package, test functionality of the program with: make -C debian/test all -- Jari Aalto , Tue, 5 Jan 2010 20:51:05 +0200 debian/clean0000644000000000000000000000003512114307705010171 0ustar debian/*.1 debian/test/*.zip debian/pod2man.mk0000644000000000000000000000345312114307705011064 0ustar # pod2man.mk -- Makefile portion to convert *.pod files to manual pages # # Copyright information # # Copyright (C) 2008-2010 Jari Aalto # # License # # 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. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Description # # Convert *.pod files to manual pages. Add this to Makefile: # # PACKAGE = package # # man: # make -f pod2man.mk PACKAGE=$(PACKAGE) makeman # # build: man ifneq (,) This makefile requires GNU Make. endif # This variable *must* be set when called PACKAGE ?= package # Optional variables to set MANSECT ?= 1 PODCENTER ?= User Commands PODDATE ?= $$(date "+%Y-%m-%d") # Directories MANSRC ?= MANDEST ?= $(MANSRC) MANPOD ?= $(MANSRC)$(PACKAGE).$(MANSECT).pod MANPAGE ?= $(MANDEST)$(PACKAGE).$(MANSECT) POD2MAN ?= pod2man POD2MAN_FLAGS ?= --utf8 makeman: $(MANPAGE) $(MANPAGE): $(MANPOD) # make target - create manual page from a *.pod page podchecker $(MANPOD) LC_ALL= LANG=C $(POD2MAN) $(POD2MAN_FLAGS) \ --center="$(PODCENTER)" \ --date="$(PODDATE)" \ --name="$(PACKAGE)" \ --section="$(MANSECT)" \ $(MANPOD) \ | sed 's,[Pp]erl v[0-9.]\+,$(PACKAGE),' \ > $(MANPAGE) && \ rm -f pod*.tmp # End of of Makefile part debian/watch0000644000000000000000000000024312114307705010216 0ustar version=3 http://oldhome.schmorp.de/marc/data/fcrackzip-(\d.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)) # Bart Martens Sat, 24 Nov 2012 12:56:08 +0000 debian/rules0000755000000000000000000000130612114307705010246 0ustar #!/usr/bin/make -f PACKAGE = fcrackzip BINDIR = debian/$(PACKAGE)/usr/bin export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed man: $(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE)info makeman override_dh_auto_test: # Skip tests, because: # fcrackzip --benchmark # /bin/bash: fcrackzip: command not found override_dh_auto_install: man dh_auto_install # As a program called zipinfo is already present in the # "unzip" package, rename to fcrackzipinfo mv $(BINDIR)/zipinfo $(BINDIR)/fcrackzipinfo override_dh_installchangelogs: dh_installchangelogs NEWS %: dh $@ .PHONY: man # End of file debian/changelog0000644000000000000000000000742012114307705011043 0ustar fcrackzip (1.0-5) unstable; urgency=low [ Jari Aalto ] * debian/control - (Standards-Version): Update to 3.9.4. * debian/copyright - Update URL. Update year. * debian/docs - Delete extra newline. * debian/patches - (20): New. Update project homepage URL in README (Closes: #694529). [ tony mancill ] * debian/watch - Include updated d/watch file provided by Bart Martens. -- Jari Aalto Thu, 28 Feb 2013 10:15:28 +0200 fcrackzip (1.0-4) unstable; urgency=low * debian/control - (Build-Depends): Rm dpkg-dev; not needed with debhelper 9. - (Standards-Version): Update to 3.9.3.1. * debian/copyright - Update to format 1.0. * debian/debian-vars.mk - Delete; no longer used. * debian/docs - Delete *.html; copy of manual page. * debian/rules - Remove unneeded targets. - Enable all hardening flags. - Use DEB_*_MAINT_* variables. -- Jari Aalto Fri, 23 Mar 2012 05:09:32 -0400 fcrackzip (1.0-3) unstable; urgency=low * debian/compat - Update to 9 * debian/control - (Build-Depends): Update to debhelper 9, dpkg-dev 1.16.1. - (Standards-Version): Update to 3.9.2. * debian/copyright - Update to DEP5 * debian/rules - Remove unnecessary rules. - Use hardened CFLAGS. http://wiki.debian.org/ReleaseGoals/SecurityHardeningBuildFlags -- Jari Aalto Sat, 11 Feb 2012 04:57:06 -0500 fcrackzip (1.0-2) unstable; urgency=low * debian/compat - Update to 8. * debian/control - (Build-Depends): Update to debhelper 8. - (Standards-Version): Update to 3.9.1. * debian/patches - (20): Refresh. Add also fix for unescaped passwords that cause "sh: Syntax error: Unterminated quoted string". Patch thanks to Richard Corner from Ubuntu (see LP#350640). -- Jari Aalto Mon, 25 Oct 2010 17:11:27 +0300 fcrackzip (1.0-1) unstable; urgency=low * New maintainer (ITA; Closes: #555125) - New version (Closes: #531657). - Pw is not initialized and read from stdin (Closes: #528219). - Segmentation Fault when init-password string is longer than MAX_PW (40)(Closes: #500750). - Move to format: 3.0 (quilt). * debian/clean - New file. * debian/compat - Update to 7. * debian/control - (Build-Depends): update to debhelper 7, remove old version from autotools-dev. - (Homepage): New field. - (Standards-Version): update to 3.8.3. * debian/copyright - Update layout. * debian/debian-{autotools,compile,vars}.mk - New files. * debian/fcrackzipinfo.1 - Delete, convert to POD format. * debian/fcrackzipinfo.1.pod - New file. * debian/fcrackzip.{examples,manpages} - Move content from rules for dh(1). * debian/patches - (10): New; fix hyphens in manual page. - (20): New; handle special files (Closes: #430387). * debian/pod2man.mk - New file. * debian/rules - Update to dh(1). * debian/watch - New file. -- Jari Aalto Tue, 05 Jan 2010 20:28:03 +0200 fcrackzip (0.3-2) unstable; urgency=low * Added project homepage in long description and fixed a typo. * Added patch from Andreas Jochens to build fcrackzip on AMD64. Thanks Andreas! (Closes: #285915) * Correctly escapes special chars when calling unzip to test passwords. (Closes: #283997) * Let return value of "1" mean good password. (Closes: #258665) * Useless debhelper commands removed from debian/rules. * Sponsored by Emanuele Rocca . -- Francesco Donadon Sat, 18 Dec 2004 20:46:52 +0100 fcrackzip (0.3-1) unstable; urgency=low * Initial Release (Closes: #239653). -- Francesco Donadon Sat, 10 Apr 2004 16:06:44 +0200 debian/patches/0000755000000000000000000000000012114307705010615 5ustar debian/patches/10-manpage-hyphen.patch0000644000000000000000000001573712114307705014772 0ustar From 1b51acd93204d9946bfae7aae2c6a81d1db807c3 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Tue, 29 Dec 2009 16:00:14 +0200 Subject: [PATCH] fcrackzip.1: fix hyphens Signed-off-by: Jari Aalto --- fcrackzip.1 | 56 ++++++++++++++++++++++++++++---------------------------- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/fcrackzip.1 b/fcrackzip.1 index 8566817..996cce5 100644 --- a/fcrackzip.1 +++ b/fcrackzip.1 @@ -4,9 +4,9 @@ \- a Free/Fast Zip Password Cracker .SH SYNOPSIS .B fcrackzip -[-bDBchVvplum2] [--brute-force] [--dictionary] [--benchmark] [--charset characterset] -[--help] [--validate] [--verbose] [--init-password string/path] [--length min-max] -[--use-unzip] [--method name] [--modulo r/m] file... +[\-bDBchVvplum2] [\-\-brute\-force] [\-\-dictionary] [\-\-benchmark] [\-\-charset characterset] +[\-\-help] [\-\-validate] [\-\-verbose] [\-\-init\-password string/path] [\-\-length min\-max] +[\-\-use\-unzip] [\-\-method name] [\-\-modulo r/m] file... .SH DESCRIPTION .I fcrackzip searches each zipfile given for encrypted files and tries to guess the @@ -14,22 +14,22 @@ password. All files must be encrypted with the same password, the more files you provide, the better. .SS OPTIONS .TP -.B \-h, \--help +.B \-h, \-\-help Prints the version number and (hopefully) some helpful insights. .TP -.B \-v, \--verbose -Each -v makes the program more verbose. +.B \-v, \-\-verbose +Each \-v makes the program more verbose. .TP -.B \-b, \--brute-force +.B \-b, \-\-brute-force Select brute force mode. This tries all possible combinations of the letters you specify. .TP -.B \-D, \--dictionary +.B \-D, \-\-dictionary Select dictionary mode. In this mode, fcrackzip will read passwords from a file, which must contain one password per line and should be alphabetically sorted (e.g. using \fBsort(1)\fR). .TP -.B \-c, \--charset characterset-specification +.B \-c, \-\-charset characterset-specification Select the characters to use in brute-force cracking. Must be one of @@ -47,40 +47,40 @@ of For example, a1:$% selects lowercase characters, digits and the dollar and percent signs. .TP -.B \-p, \--init-password string +.B \-p, \-\-init-password string Set initial (starting) password for brute-force searching to \fIstring\fR, or use the file with the name \fIstring\fR to supply passwords for dictionary searching. .TP -.B \-l, \--length min[-max] +.B \-l, \-\-length min[-max] Use an initial password of length min, and check all passwords upto passwords of length max (including). You can omit the max parameter. .TP -.B \-u, \--use-unzip +.B \-u, \-\-use-unzip Try to decompress the first file by calling unzip with the guessed password. This weeds out false positives when not enough files have been given. .TP -.B \-m, \--method name +.B \-m, \-\-method name Use method number "name" instead of the default cracking method. The switch \fB--help\fR will print a list of available methods. Use \fB--benchmark\fR to see which method does perform best on your machine. The \fBname\fR can also be the number of the method to use. .TP -.B \-2, \--modulo r/m +.B \-2, \-\-modulo r/m Calculate only r/m of the password. Not yet supported. .TP -.B \-B, \--benchmark +.B \-B, \-\-benchmark Make a small benchmark, the output is nearly meaningless. .TP -.B -V, \--validate +.B -V, \-\-validate Make some basic checks wether the cracker works. .SH ZIP PASSWORD BASICS -Have you ever mis-typed a password for unzip? Unzip reacted pretty fast with +Have you ever mis\-typed a password for unzip? Unzip reacted pretty fast with \'incorrect password\', \fIwithout\fR decrypting the whole file. While the encryption algorithm used by zip is relatively secure, PK made cracking easy -by providing hooks for very fast password-checking, directly in the zip +by providing hooks for very fast password\-checking, directly in the zip file. Understanding these is crucial to zip password cracking: For each password that is tried, the first twelve bytes of the file are @@ -104,37 +104,37 @@ By default, brute force starts at the given starting password, and successively tries all combinations until they are exhausted, printing all passwords that it detects, together with a rough correctness indicator. -The starting password given by the \fI-p\fR switch determines the length. +The starting password given by the \fI\-p\fR switch determines the length. fcrackzip will not currently increase the password length automatically, unless -the \fI-l\fR switch is used. +the \fI\-l\fR switch is used. .SH DICTIONARY MODE This mode is similar to brute force mode, but instead of generating passwords using a given set of characters and a length, the passwords will be read from -a file that you have to specify using the \fI-p\fR switch. +a file that you have to specify using the \fI\-p\fR switch. .SH CP MASK A CP mask is a method to obscure images or parts of images using a password. These obscured images can be restored even when saved as JPEG files. In most of these files the password is actually hidden and can be decoded easily (using one of the many available viewer and masking programs, e.g. xv). If you convert the image the password, however, is -lost. The \fBcpmask\fR crack method can be used to brute-force these +lost. The \fBcpmask\fR crack method can be used to brute\-force these images. Instead of a zip file you supply the obscured part (and nothing else) of the image in the \fBPPM\fR-Image Format (\fBxv\fR and other viewers can easily do this). The \fBcpmask\fR method can only cope with password composed of uppercase -letters, so be sure to supply the \fB--charset A\fR or equivalent option, +letters, so be sure to supply the \fB\-\-charset A\fR or equivalent option, together with a suitable initialization password. .SH EXAMPLES .TP -.B fcrackzip -c a -p aaaaaa sample.zip +.B fcrackzip \-c a \-p aaaaaa sample.zip checks the encrypted files in sample.zip for all lowercase 6 character passwords (aaaaaa ... abaaba ... ghfgrg ... zzzzzz). .TP -.B fcrackzip --method cpmask --charset A --init AAAA test.ppm +.B fcrackzip \-\-method cpmask \-\-charset A \-\-init AAAA test.ppm checks the obscured image \fBtest.ppm\fR for all four character passwords. --TP -.B fcrackzip -D -p passwords.txt sample.zip +.TP +.B fcrackzip \-D \-p passwords.txt sample.zip check for every password listed in the file \fBpasswords.txt\fR. .SH PERFORMANCE \fIfzc\fR, which seems to be widely used as a fast password cracker, @@ -148,7 +148,7 @@ percent slower (the compiler used was \fIpgcc\fR, from To remedy this a bit, I converted small parts of the encryption core to x86 assembler (it will still compile on non x86 machines), and now it\'s about -4-12 percent faster than \fIfzc\fR (again, the \fIfcrackzip\fR performance +4\-12 percent faster than \fIfzc\fR (again, the \fIfcrackzip\fR performance was measured under a multitasking os, so there are inevitably some meaurement errors), so there shouldn't be a tempting reason to switch to other programs. -- 1.6.5 debian/patches/series0000644000000000000000000000014112114307705012026 0ustar 10-manpage-hyphen.patch 20-bug-430387-cannot-deal-files-with-special-chars.patch 20-readme.patch debian/patches/20-bug-430387-cannot-deal-files-with-special-chars.patch0000644000000000000000000000472212114307705022355 0ustar From 0fe92dade96e4ad947da308c028b407125867738 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Mon, 25 Oct 2010 17:07:08 +0300 Subject: [PATCH] handle special file names and passwords Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto --- main.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 100 insertions(+), 1 deletions(-) diff --git a/main.c b/main.c index f632241..d18c482 100644 --- a/main.c +++ b/main.c @@ -44,13 +44,112 @@ static int modul = 1; static FILE *dict_file; +char * +path_for_shell (char *dest, const char *str) +{ + /* backslash shell special charatcers */ + + char ch, *p = dest; + size_t len = strlen(str); + int i; + + for (i = 0; i < len; i++) + { + ch = str[i]; + + switch (ch) + { + /* ASCII table order */ + case 0x20: /* space */ + case '!': + case '"': + case '#': + case '$': + case '&': + case 0x27: /* single quote */ + case '(': + case ')': + case '*': + case '+': + case 0x2C: /* comma */ + case ':': + case ';': + case '<': + case '>': + case '?': + case '[': + case '\\': + case ']': + case '^': + case '`': + case '{': + case '|': + case '}': + case '~': + /* backslash special characters */ + *p++ = '\\'; + *p++ = ch; + break; + default: + *p++ = ch; + } + } + + /* terminate string */ + *p = '\0'; + + return dest; +} + +char * +escape_pw (char *dest, const char *str) +{ + /* backslash shell special charatcers */ + + char ch, *p = dest; + size_t len = strlen(str); + int i; + + for (i = 0; i < len; i++) + { + ch = str[i]; + + switch (ch) + { + /* ASCII table order */ + case '"': + case '$': + case 0x27: /* single quote */ + case '\\': + case '`': + /* backslash special characters */ + *p++ = '\\'; + *p++ = ch; + break; + default: + *p++ = ch; + } + } + + /* terminate string */ + *p = '\0'; + + return dest; +} + int REGPARAM check_unzip (const char *pw) { char buff[1024]; + char path[1024]; + char escpw[256]; int status; - sprintf (buff, "unzip -qqtP \"%s\" %s " DEVNULL, pw, file_path[0]); + escape_pw (escpw, pw); + path_for_shell (path, file_path[0]); + + sprintf (buff, "unzip -qqtP \"%s\" %s " DEVNULL, escpw, path); + status = system (buff); #undef REDIR -- 1.7.1 debian/patches/20-readme.patch0000644000000000000000000000114212114307705013310 0ustar From: Jari Aalto Subject: Update URL address (Closes: #694529). --- README | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/README +++ b/README @@ -2,8 +2,7 @@ See fcrackzip.txt (which is derived from the manpage), or fcrackzip.html There is a web page with more information at -http://lehmann.home.ml.org/fcrackzip.html or -http://www.goof.com/pcg/marc/fcrackzip.html +http://software.schmorp.de/pkg/fcrackzip.html A sample password-protected .zip file is included as "noradi.zip". It's password has 6 lower case characters, and fcrackzip will find it (and a debian/docs0000644000000000000000000000001712114307705010037 0ustar README AUTHORS debian/fcrackzipinfo.1.pod0000644000000000000000000000401312114307705012657 0ustar # Copyright # # Copyright (C) 2004-2009 Jari Aalto # # License # # 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. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Description # # To learn what TOP LEVEL section to use in manual pages, # see POSIX/Susv standard and "tility Description Defaults" at # http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap01.html#tag_01_11 # # This is manual page in Perl POD format. Read more at # http://perldoc.perl.org/perlpod.html or run command: # # perldoc perlpod | less # # To check the syntax: # # podchecker *.pod # # Create manual page with command: # # pod2man PAGE.N.pod > PAGE.N =pod =head1 NAME fcrackzipinfo - display zip information =head1 SYNOPSIS fcrackzipinfo file [...] =head1 DESCRIPTION fcrackzipinfo is a program that displays various info from the file(s) passed as arguments. =head1 OPTIONS =over 4 =item B<--help> Dispay usage. =back =head1 ENVIRONMENT None. =head1 FILES None. =head1 SEE ALSO fcrackzip(1), zip(1), unzip(1) =head1 AUTHORS Program was written by Marc Lehmann . This manual page was written by Francesco Donadon , for the Debian GNU system (but may be used by others). Updated by Jari Aalto . Released under license GNU GPL version 2 or (at your option) any later version. For more information about license, visit . =cut debian/source/0000755000000000000000000000000012114307705010466 5ustar debian/source/format0000644000000000000000000000001412114307705011674 0ustar 3.0 (quilt) debian/debian-autotools.mk0000644000000000000000000001006312114307705012770 0ustar #!/usr/bin/make -f # # debian-autotools.mk -- Common tasks for Autotools # # Copyright # # Copyright (C) 2008-2010 Jari Aalto # # License # # 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. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Description # # This is GNU makefile part that defines common variables, # targets and macros to be used in debian/rules. # # Dealing with packages that have old Autotools config.* files # we can: (1) Save package's config.* (2) Copy the latest from # Debian (3) restore package's config.* files. This way the # Debian *diff.gz stays clean and understandable to examine. In # addition if sources are kept in version control, they are not # flagged as modified. # # To install, add macro calls like this: # # override_dh_auto_configure: # $(make-depend-save) # $(config-prepare) # dh_auto_configure # # override_dh_auto_clean: # $(config-restore) # $(make-depend-restore) # dh_auto_clean ifneq (,) This makefile requires GNU Make. endif # ...................................................... make.depend ... define make-depend-save # make-depend-save: Save original file [ -f make.depend.original ] || cp -v make.depend make.depend.original endef define make-depend-restore # make-depend-restore: Restore original file [ ! -f make.depend.original ] || mv -v make.depend.original make.depend endef # ...................................................... config-h-in ... define config-h-in-save # config-h-in-save: Save original file [ -f config.h.in.original ] || cp -v config.h.in config.h.in.original endef define config-h-in-restore # config-h-in-restore: Restore original file [ ! -f config.h.in.original ] || mv -v config.h.in.original config.h.in endef # ........................................................ configure ... define config-configure-save # config-configure-save: Save original file [ -f configure.original ] || cp -v configure configure.original endef define config-configure-restore # config-configure-restore: Restore original file [ ! -f configure.original ] || mv -v configure.original configure endef # ........................................ Debian config.{sub,guess} ... define config-patch-sub # config-patch-sub: Use latest version from Debian [ ! -f /usr/share/misc/config.sub ] || \ cp -vf /usr/share/misc/config.sub . endef define config-patch-guess # config-patch-guess: Use latest version from Debian [ ! -f /usr/share/misc/config.guess ] || \ cp -vf /usr/share/misc/config.guess . endef # ............................................... config.{sub,guess} ... define config-save # config-save: Save original files [ ! -f config.sub.original ] || cp -v config.sub config.sub.original [ ! -f config.guess.original ] || cp -v config.guess config.guess.original endef define config-restore # config-restore: Restore original files [ ! -f config.sub.original ] || mv -v config.sub.original config.sub [ ! -f config.guess.original ] || mv -v config.guess.original config.guess endef define config-restore-copy # config-restore-copy: Copy original files [ ! -f config.sub.original ] || cp -v config.sub.original config.sub [ ! -f config.guess.original ] || cp -v config.guess.original config.guess endef define config-delete # config-delete: Delete config files rm -f config.sub config.guess endef define config-patch # config-patch: copy latest $(config-patch-sub) $(config-patch-guess) endef define config-prepare # config-prepare: save and patch $(config-save) $(config-patch) endef # End of Makefile part debian/compat0000644000000000000000000000000212114307705010364 0ustar 9 debian/copyright0000644000000000000000000000427412114307705011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: fcrackzip Upstream-Contact: Marc Lehmann , Source: http://freshmeat.net/projects/fcrackzip X-Upstream-Vcs: X-Upstream-Bugs: X-Source: http://software.schmorp.de/pkg/fcrackzip.html http://cvs.schmorp.de/fcrackzip Files: * Copyright: 2010 Marc Lehmann License: GPL-3+ Files: getopt.c getopt.h getopt1.c Copyright: 1987-1996 Free Software Foundation, Inc. License: LGPL-2+ Files: debian/* Copyright: 2011-2013 Jari Aalto 2004 Francesco Donadon License: GPL-3+ License: GPL-3+ 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 3 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 program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in "/usr/share/common-licenses/GPL-3". License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, see . . On Debian systems, the complete text of the GNU Library General Public License can be found in "/usr/share/common-licenses/LGPL-2". debian/test/0000755000000000000000000000000012114307705010145 5ustar debian/test/input.pass0000644000000000000000000000000312114307705012165 0ustar cc debian/test/password.txt0000644000000000000000000000000312114307705012541 0ustar ab debian/test/README0000644000000000000000000000010212114307705011016 0ustar # To test functionality with these simple tests set -x fcrackzip debian/test/Makefile0000644000000000000000000000113312114307705011603 0ustar # test functionality BIN = fcrackzip OPT = -c a -u -v -v LEN = -l 1-2 PASS = -p aa OPTIONS = $(OPT) $(LEN) FILE = test.zip all: test1 test2 test3 input.pass: echo "aa" > $@ $(FILE): # create encrypted file, give 2 character password, like "ab" # when asked touch a b c zip -e $(FILE) a b c rm -f a b c \'$(FILE): $(FILE) cp $(FILE) \'$(FILE) test1: $(FILE) # test simple crack $(BIN) $(OPTIONS) $(PASS) $(FILE) test2: \'$(FILE) # test special filename $(BIN) $(OPTIONS) $(PASS) \'$(FILE) test3: input.pass # test stdin $(BIN) $(OPTIONS) -p - $(FILE) < input.pass # End of file debian/fcrackzip.manpages0000644000000000000000000000001312114307705012651 0ustar debian/*.1 debian/fcrackzip.examples0000644000000000000000000000001312114307705012674 0ustar noradi.zip debian/control0000644000000000000000000000135112114307705010571 0ustar Source: fcrackzip Section: utils Priority: optional Maintainer: Jari Aalto Build-Depends: debhelper (>= 9), autotools-dev Standards-Version: 3.9.4 Vcs-Browser: http://git.debian.org/?p=collab-maint/fcrackzip.git Vcs-Git: git://git.debian.org/git/collab-maint/fcrackzip.git Homepage: http://freshmeat.net/projects/fcrackzip Package: fcrackzip Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: unzip, wordlist Description: password cracker for zip archives fcrackzip is a fast password cracker partly written in assembler. It is able to crack password protected zip files with brute force or dictionary based attacks, optionally testing with unzip its results. It can also crack cpmask'ed images.