[pdfcrack/f16] First commit

pjp pjp at fedoraproject.org
Tue Nov 15 13:40:54 UTC 2011


commit ae15880f3dfb78accceefdee94f9bc8f7c26127c
Author: P J P <pj.pandit at yahoo.co.in>
Date:   Tue Nov 15 19:10:38 2011 +0530

    First commit

 .gitignore              |    1 +
 pdfcrack-rm-strip.patch |   22 ++++++++++++++
 pdfcrack.1              |   72 +++++++++++++++++++++++++++++++++++++++++++++++
 pdfcrack.spec           |   62 ++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 5 files changed, 158 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b29cc68 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pdfcrack-0.11.tar.gz
diff --git a/pdfcrack-rm-strip.patch b/pdfcrack-rm-strip.patch
new file mode 100644
index 0000000..ae91a84
--- /dev/null
+++ b/pdfcrack-rm-strip.patch
@@ -0,0 +1,22 @@
+diff -Naurp pdfcrack-0.11.0/Makefile pdfcrack-0.11.1/Makefile
+--- pdfcrack-0.11.0/Makefile	2008-05-01 02:44:58.000000000 +0530
++++ pdfcrack-0.11.1/Makefile	2011-10-21 23:58:41.173863917 +0530
+@@ -1,17 +1,15 @@
+ CFLAGS= -Wall -Wshadow -Wwrite-strings -Wsign-compare -Wfloat-equal \
+ 	-Wmissing-noreturn -Wbad-function-cast \
+-	-Wmissing-prototypes -Winline -Wredundant-decls -O3
++	-Wmissing-prototypes -Winline -Wredundant-decls -O3 -g
+ 
+ all: pdfcrack
+ 
+ pdfcrack: main.o rc4.o md5.o pdfcrack.o pdfparser.o passwords.o common.o \
+ 	benchmark.o
+ 	gcc $(CFLAGS) -o $@ $+
+-	strip $@
+ 
+ pdfreader: pdfparser.o pdfreader.o common.o
+ 	gcc $(CFLAGS) -o $@ $+
+-	strip $@
+ 
+ clean:
+ 	rm -f pdfcrack pdfreader testreader *.o
diff --git a/pdfcrack.1 b/pdfcrack.1
new file mode 100644
index 0000000..5374f6d
--- /dev/null
+++ b/pdfcrack.1
@@ -0,0 +1,72 @@
+.TH PDFCRACK 1 "October 26, 2011" "pdfcrack 0.11" ""
+.SH NAME
+\fBpdfcrack \- PDF files password cracker
+\fB
+.SH SYNOPSIS
+.nf
+.fam C
+\fBpdfcrack\fP -f \fIfilename\fP [\fIoptions\fP]
+.fam T
+.fi
+.SH DESCRIPTION
+\fBpdfcrack\fP is a simple tool for recovering passwords from pdf-documents. It should be able to handle all pdfs that uses the standard security handler but the pdf-parsing routines are a bit of a quick hack so you might stumble across some pdfs where the parser needs to be fixed to handle.
+.SH OPTIONS
+.TP
+.B
+\fB\-b, --bench\fP
+Perform benchmark and exit.
+.TP
+.B
+\fB\-c\fP, \fB--charset=\fP\fISTRING\fP
+Use the characters in \fISTRING\fP as charset.
+.TP
+.B
+\fB\-m\fP, \fB--maxpw=\fP\fIINTEGER\fP
+Stop when reaching \fIINTEGER\fP as password length.
+.TP
+.B
+\fB\-n\fP, \fB--minpw=\fP\fIINTEGER\fP
+Skip trying passwords shorter than \fIINTEGER\fP.
+.TP
+.B
+\fB\-l\fP, \fB--loadState=\fP\fIFILE\fP
+Continue from the state saved in \fIFILENAME\fP.
+.TP
+.B
+\fB\-o, --owner\fP
+Work with the ownerpassword.
+.TP
+.B
+\fB\-p\fP, \fB--password=\fP\fISTRING\fP
+Uses STRING as userpassword to speed up breaking ownerpassword (implies -o).
+.TP
+.B
+\fB\-q, --quiet\fP
+Run quietly.
+.TP
+.B
+\fB\-s, --permutate\fP
+Try permutating the passwords (currently only supports switching first character to uppercase).
+.TP
+.B
+\fB\-u, --user\fP
+Work with the userpassword (default).
+.TP
+.B
+\fB\-v, --version\fP
+Print version and exit.
+.TP
+.B
+\fB\-w\fP, \fB--wordlist=\fP\fIFILE\fP
+Use \fIFILE\fP as source of passwords to try.
+.SH AUTHOR
+Written by Nacho Barrientos Arias <chipi at criptonita.com> for the Debian GNU/Linux system (but may be used by others).
+.SH BUGS
+Report bugs to Henning Noren <confusion42 at users.sourceforge.net>.
+.SH COPYRIGHT
+Copyright \(co 2006, Henning Noren <confusion42 at users.sourceforge.net> \- All Rights Reserved. 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, Inc.
+.PP
+.nf
+.fam C
+http://sourceforge.net/projects/pdfcrack
+
diff --git a/pdfcrack.spec b/pdfcrack.spec
new file mode 100644
index 0000000..43f8159
--- /dev/null
+++ b/pdfcrack.spec
@@ -0,0 +1,62 @@
+Name:           pdfcrack
+Version:        0.11
+Release:        7%{?dist}
+Summary:        A Password Recovery Tool for PDF files
+
+Group:          Applications/System
+License:        GPLv2+
+URL:            http://pdfcrack.sourceforge.net/
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+Source1:        pdfcrack.1
+patch0:         pdfcrack-rm-strip.patch
+
+%description
+PDFCrack is a GNU/Linux tool for recovering passwords and content
+from PDF-files. It is small, command line driven without external
+dependencies.
+
+%prep
+%setup -q
+%patch0 -p1
+
+
+%build
+make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}"
+
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_bindir}/
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+
+install -pm0755 %{name} $RPM_BUILD_ROOT%{_bindir}/
+install -pm0644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1/
+
+
+%files
+%doc README TODO COPYING changelog
+%{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1.gz
+
+
+%changelog
+* Sat Oct 29 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-7
+- Added new user manual - pdfcrack.1 - by Mr. Richard Shaw.
+
+* Fri Oct 28 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-6
+- changed to update description and add CFLAGS to the build section.
+
+* Sat Oct 22 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-5
+- created a patch to the Makefile to keep it from striping the
+  binary files.
+
+* Thu Oct 20 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-4
+- changed install section to use {name} macro.
+
+* Wed Oct 19 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-3
+- changed to use name macro in files secion.
+
+* Mon Oct 17 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-2
+- changed Source0 to use name and version macros. Removed section: clean.
+
+* Mon Oct 17 2011 P J P <pj.pandit at yahoo.co.in> - 0.11-1
+- First RPM build.
diff --git a/sources b/sources
index e69de29..50af498 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+00bdb4c44dd209f493fc02d38c1a6377  pdfcrack-0.11.tar.gz


More information about the scm-commits mailing list