2021-01-17 03:51:22 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, protobuf, openssl, libpcap, traceroute
|
2018-07-09 10:31:22 +01:00
|
|
|
, withGUI ? false, qt5 }:
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
let inherit (lib) optional;
|
2018-07-09 10:31:22 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spoofer";
|
2021-08-22 07:31:14 +01:00
|
|
|
version = "1.4.7";
|
2018-07-09 10:31:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.caida.org/projects/spoofer/downloads/${pname}-${version}.tar.gz";
|
2021-08-22 07:31:14 +01:00
|
|
|
sha256 = "sha256-6ov1dZbxmBRIhfIzUaxiaHUeiU6SbNKhiQX1W4lmhD8=";
|
2018-07-09 10:31:22 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-07-09 10:31:22 +01:00
|
|
|
buildInputs = [ openssl protobuf libpcap traceroute ]
|
|
|
|
++ optional withGUI qt5.qtbase ;
|
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.caida.org/projects/spoofer";
|
2018-07-09 10:31:22 +01:00
|
|
|
description = "Assess and report on deployment of source address validation";
|
|
|
|
longDescription = ''
|
|
|
|
Spoofer is a new client-server system for Windows, MacOS, and
|
|
|
|
UNIX-like systems that periodically tests a network's ability to
|
|
|
|
both send and receive packets with forged source IP addresses
|
|
|
|
(spoofed packets). This can be used to produce reports and
|
|
|
|
visualizations to inform operators, response teams, and policy
|
|
|
|
analysts. The system measures different types of forged
|
|
|
|
addresses, including private and neighboring addresses. The
|
|
|
|
test results allows to analyze characteristics of networks
|
|
|
|
deploying source address validation (e.g., network location,
|
|
|
|
business type).
|
|
|
|
'';
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3Plus;
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = with lib.maintainers; [ leenaars];
|
2018-07-09 10:31:22 +01:00
|
|
|
};
|
|
|
|
}
|