2021-01-17 04:51:22 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, protobuf, openssl, libpcap, traceroute
|
2018-07-09 11:31:22 +02:00
|
|
|
, withGUI ? false, qt5 }:
|
|
|
|
|
2021-01-15 10:19:50 +01:00
|
|
|
let inherit (lib) optional;
|
2018-07-09 11:31:22 +02:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "spoofer";
|
2021-08-22 08:31:14 +02:00
|
|
|
version = "1.4.7";
|
2018-07-09 11:31:22 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.caida.org/projects/spoofer/downloads/${pname}-${version}.tar.gz";
|
2021-08-22 08:31:14 +02:00
|
|
|
sha256 = "sha256-6ov1dZbxmBRIhfIzUaxiaHUeiU6SbNKhiQX1W4lmhD8=";
|
2018-07-09 11:31:22 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 04:51:22 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-07-09 11:31:22 +02:00
|
|
|
buildInputs = [ openssl protobuf libpcap traceroute ]
|
|
|
|
++ optional withGUI qt5.qtbase ;
|
|
|
|
|
2021-01-12 12:50:23 +01:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.caida.org/projects/spoofer";
|
2018-07-09 11:31:22 +02: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 10:19:50 +01:00
|
|
|
maintainers = with lib.maintainers; [ leenaars];
|
2018-07-09 11:31:22 +02:00
|
|
|
};
|
|
|
|
}
|