2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libpcap, makeWrapper, perlPackages }:
|
2014-02-03 11:34:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "arp-scan";
|
2024-02-07 15:02:26 +00:00
|
|
|
version = "1.10.0";
|
2014-02-03 11:34:50 +00:00
|
|
|
|
2018-07-04 23:00:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "royhills";
|
|
|
|
repo = "arp-scan";
|
2019-12-12 19:27:29 +00:00
|
|
|
rev = version;
|
2024-02-07 15:02:26 +00:00
|
|
|
sha256 = "sha256-BS+ItZd6cSMX92M6XGYrIeAiCB2iBdvbMvKdLfwawLQ=";
|
2014-02-03 11:34:50 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 15:02:26 +00:00
|
|
|
patches = [
|
|
|
|
./remove-install-exec-hook.patch
|
|
|
|
];
|
|
|
|
|
2017-12-07 11:12:02 +00:00
|
|
|
perlModules = with perlPackages; [
|
|
|
|
HTTPDate
|
|
|
|
HTTPMessage
|
2018-07-22 02:03:24 +00:00
|
|
|
LWP
|
2024-02-07 15:02:26 +00:00
|
|
|
TextCSV
|
2017-12-07 11:12:02 +00:00
|
|
|
URI
|
|
|
|
];
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
|
|
|
buildInputs = [ perlPackages.perl libpcap ];
|
2017-12-07 11:12:02 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2023-08-08 15:21:10 +00:00
|
|
|
for binary in get-{oui,iab}; do
|
|
|
|
wrapProgram "$out/bin/$binary" --set PERL5LIB "${perlPackages.makeFullPerlPath perlModules}"
|
2017-12-07 11:12:02 +00:00
|
|
|
done;
|
|
|
|
'';
|
2014-02-03 11:34:50 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-02-03 11:34:50 +00:00
|
|
|
description = "ARP scanning and fingerprinting tool";
|
|
|
|
longDescription = ''
|
|
|
|
Arp-scan is a command-line tool that uses the ARP protocol to discover
|
|
|
|
and fingerprint IP hosts on the local network.
|
|
|
|
'';
|
2023-08-08 15:21:22 +00:00
|
|
|
homepage = "https://github.com/royhills/arp-scan/wiki/arp-scan-User-Guide";
|
2014-02-03 11:34:50 +00:00
|
|
|
license = licenses.gpl3;
|
2021-01-28 08:01:35 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
maintainers = with maintainers; [ bjornfor mikoim r-burns ];
|
2023-08-08 15:21:31 +00:00
|
|
|
mainProgram = "arp-scan";
|
2014-02-03 11:34:50 +00:00
|
|
|
};
|
|
|
|
}
|