~ruther/guix-local

7818f1d3d957bd00cb0df8d6b002fe31d4013d18 — Isidor Zeuner 5 months ago ea2bde6
gnu: Add maskprocessor.

* gnu/packages/password-utils.scm (maskprocessor): New variable.

Signed-off-by: Ekaitz Zarraga <ekaitz@elenq.tech>
1 files changed, 44 insertions(+), 0 deletions(-)

M gnu/packages/password-utils.scm
M gnu/packages/password-utils.scm => gnu/packages/password-utils.scm +44 -0
@@ 43,6 43,7 @@
;;; Copyright © 2024, 2025 John Kehayias <john.kehayias@protonmail.com>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2025 Cayetano Santos <csantosb@inventati.org>
;;; Copyright © 2025 Isidor Zeuner <guix@quidecco.pl>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 1584,6 1585,49 @@ of the box are Windows LM hashes, plus lots of other hashes and ciphers.  This
is the community-enhanced, \"jumbo\" version of John the Ripper.")
      (license license:gpl2+))))

(define-public maskprocessor
  (package
    (name "maskprocessor")
    (version "0.73")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/hashcat/maskprocessor")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "1vv12iwnkzvjsp9bnix0z1m3hbyhasf5nxngp65b4gdlkk7lqnrd"))))
    (build-system gnu-build-system)
    (arguments
     (list
      #:tests? #f ;upstream does not provide tests
      #:phases
      #~(modify-phases %standard-phases
          (delete 'bootstrap)
          (delete 'configure)
          (replace 'build
            (lambda* _args
              (invoke "gcc"
                      "-W"
                      "-Wall"
                      "-Werror"
                      "-std=c99"
                      "-O2"
                      "-DLINUX"
                      "-o"
                      "maskprocessor"
                      "src/mp.c")))
          (replace 'install
            (lambda* _args
              (install-file "maskprocessor"
                            (string-append #$output "/bin")))))))
    (home-page "https://github.com/hashcat/maskprocessor")
    (synopsis "High-Performance word generator")
    (description "Maskprocessor is a high-performance word generator with a
per-position configureable charset.")
    (license (list license:expat))))

(define-public fpm2
  (package
    (name "fpm2")