diff options
author | Pierre Neidhardt <ambrevar@gmail.com> | 2018-07-30 16:00:19 +0200 |
---|---|---|
committer | Pierre Neidhardt <ambrevar@gmail.com> | 2018-08-14 12:00:18 +0200 |
commit | 5bd3134e04ae91fdefe46d112bad07e996f50e66 (patch) | |
tree | 69b9c201e6099e4d56860d9cb3941c1331902504 | |
parent | eb4ffe9b872cc2939e24d6bb16b260dd912ff536 (diff) | |
download | guix-5bd3134e04ae91fdefe46d112bad07e996f50e66.tar.gz |
gnu: Add hcxtools.
* gnu/packages/networking.scm (hcxtools): New variable.
-rw-r--r-- | gnu/packages/networking.scm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 4f2b3ad6b7..5d71494259 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2018 Theodoros Foradis <theodoros@foradis.org> ;;; Copyright © 2018 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com> +;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -2096,3 +2097,50 @@ SNMP v3 using both IPv4 and IPv6.") between various technologies. Currently, bridging between UDP tunnels, Ethernet and TAP interfaces is supported. Packet capture is also supported.") (license license:gpl3+))) + +(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)))) |