From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54979) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fkRjD-0005wx-Fi for guix-patches@gnu.org; Tue, 31 Jul 2018 06:18:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fkRj9-0001a2-ED for guix-patches@gnu.org; Tue, 31 Jul 2018 06:18:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fkRj9-0001Zn-8D for guix-patches@gnu.org; Tue, 31 Jul 2018 06:18:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fkRj9-0007ts-34 for guix-patches@gnu.org; Tue, 31 Jul 2018 06:18:03 -0400 Subject: [bug#32332] [PATCH 3/4] gnu: Add hcxtools. Resent-Message-ID: From: Pierre Neidhardt Date: Tue, 31 Jul 2018 12:17:22 +0200 Message-Id: <20180731101723.28512-2-ambrevar@gmail.com> In-Reply-To: <20180731101723.28512-1-ambrevar@gmail.com> References: <20180731101723.28512-1-ambrevar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32332@debbugs.gnu.org * gnu/packages/networking.scm (hcxtools): New variable. --- gnu/packages/networking.scm | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 90967b9b1..c72c27137 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2018 Tonton ;;; Copyright © 2018 Clément Lassieur ;;; Copyright © 2018 Theodoros Foradis +;;; Copyright © 2018 Pierre Neidhardt ;;; ;;; This file is part of GNU Guix. ;;; @@ -1965,3 +1966,50 @@ Features: @item Destination IP blacklist @end itemize") (license license:asl2.0)))) + +(define-public hcxtools + (let* ((commit "2ecfc9a06c2028c47522ea566ccd82b2c1f94647")) + (package + (name "hcxtools") + (version (git-version "0.0.0" "1" commit)) + (home-page "https://github.com/ZerBea/hcxtools") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (sha256 + (base32 + "1hzwrpmxjxl674if0pp5iq06mdi24k7ni7bh1h20isp4s40201n3")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (inputs + `(("curl" ,curl) + ("libpcap" ,libpcap) + ("openssl" ,openssl) + ("zlib" ,zlib))) + (arguments + `(#:make-flags (list "CC=gcc" + (string-append "INSTALLDIR=" (assoc-ref %outputs "out") "/bin")) + #:tests? #f ;no tests + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'set-environment + (lambda* (#:key inputs #:allow-other-keys) + (setenv "C_INCLUDE_PATH" + (string-append (assoc-ref inputs "curl") + "/include:" + (assoc-ref inputs "libpcap") + "/include:" + (assoc-ref inputs "openssl") + "/include:" + (assoc-ref inputs "zlib") + "/include:" + (getenv "C_INCLUDE_PATH"))) + #t))))) + (synopsis "Capture wlan traffic to hashcat and John the Ripper") + (description + "This package contains a small set of tools to capture and convert +packets from wireless devices for use with hashcat or John the Ripper.") + (license license:expat)))) -- 2.18.0