unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: phodina via Guix-patches via <guix-patches@gnu.org>
To: 60053@debbugs.gnu.org
Subject: [bug#60053] [PATCH] gnu: Add pdfcrack.
Date: Tue, 13 Dec 2022 23:58:37 +0000	[thread overview]
Message-ID: <ftPPvLrQVmX2f8WUFJVME78-0e8PPqCvb3r21w6DSr7xfTG6KHWV_C4Gf6VbsqM0Mis1-MEHiSBmvqRb7bgSgpYqMzzNe6XTcIRkLHQaQb0=@protonmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 85 bytes --]

Hello,

here's another Kali tool in case you forget password for PDF file.

----
Petr

[-- Attachment #1.2: Type: text/html, Size: 181 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-pdfcrack.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-pdfcrack.patch, Size: 2245 bytes --]

From a856681da7868a3d6fd08469e68be23bf1bb8956 Mon Sep 17 00:00:00 2001
From: Petr Hodina <phodina@protonmail.com>
Date: Wed, 14 Dec 2022 00:56:34 +0100
Subject: [PATCH] gnu: Add pdfcrack.

* gnu/packages/pdf.scm (pdfcrack): New variable.

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 070dc59ac0..cf0268f418 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2020, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;; Copyright © 2022 Paul A. Patience <paul@apatience.com>
+;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1203,6 +1204,37 @@ (define-public fbida
 the framebuffer.")
     (license license:gpl2+)))
 
+(define-public pdfcrack
+  (package
+    (name "pdfcrack")
+    (version "0.20")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://salsa.debian.org/debian/pdfcrack")
+                    (commit (string-append "upstream/" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "15vrl4c14nqrcgwqqv26p73dzipy8n15d3f0pgi8mywcr5d4p33w"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:tests? #f ;no test suite
+           #:make-flags #~(list (string-append "CC="
+                                               #$(cc-for-target)))
+           #:phases #~(modify-phases %standard-phases
+                        (delete 'configure)
+                        (replace 'install
+                          (lambda* _
+                            (mkdir-p (string-append #$output "/bin"))
+                            (install-file "pdfcrack"
+                                          (string-append #$output "/bin")))))))
+    (home-page "https://pdfcrack.sourceforge.net/")
+    (synopsis "Password Recovery Tool for PDF-files")
+    (description "This package provides a simple tool for recovering passwords
+from pdf-documents that use the standard security handler.")
+    (license license:gpl2+)))
+
 (define-public pdf2svg
   (package
     (name "pdf2svg")
-- 
2.38.1


             reply	other threads:[~2022-12-13 23:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-13 23:58 phodina via Guix-patches via [this message]
2023-01-03 14:12 ` bug#60053: [PATCH] gnu: Add pdfcrack Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ftPPvLrQVmX2f8WUFJVME78-0e8PPqCvb3r21w6DSr7xfTG6KHWV_C4Gf6VbsqM0Mis1-MEHiSBmvqRb7bgSgpYqMzzNe6XTcIRkLHQaQb0=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=60053@debbugs.gnu.org \
    --cc=phodina@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).