Subject: [PATCH] gnu: networking: Add arp-scan
From: [email-masked]
To: [email-masked]
Cc: Manolis Ragkousis <[email-masked]>
Date: Tue, 4 Jan 2022 17:26:09 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

From: Manolis Ragkousis <[email-masked]>

* gnu/packages/networking.scm (arp-scan): New variable.
---
 gnu/packages/networking.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index cc9cc61164..7bcd513e41 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4143,3 +4143,24 @@ (define-public putty
 implementations.")
     (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/")
     (license license:expat)))
+
+(define-public arp-scan
+  (package
+    (name "arp-scan")
+    (version "1.9")
+    (source
+     (origin
+       (method url-fetch)
+       ;; https://github.com/royhills/arp-scan/releases/download/1.9/arp-scan-1.9.tar.gz
+       (uri (string-append "https://github.com/royhills/arp-scan/"
+                           "releases/download/" version "/"
+                           name "-" version ".tar.gz"))
+       (sha256
+        (base32 "14nqjzbmnlx2nac7lwa93y5m5iqk3layakyxyvfmvs283k3qm46f"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("libpcap" ,libpcap)))
+    (home-page "https://github.com/royhills/arp-scan")
+    (synopsis "Dscover and fingerprint IP hosts on the local network using ARP")
+    (description "A tool that uses ARP to discover and fingerprint IP hosts on the local network")
+    (license license:gpl3)))
-- 
2.33.1