2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, libpcap, libnet, zlib, curl, pcre
|
2019-12-16 19:53:52 +00:00
|
|
|
, openssl, ncurses, glib, gtk3, atk, pango, flex, bison, geoip, harfbuzz
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config }:
|
2013-10-03 13:35:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ettercap";
|
2020-08-01 23:23:39 +00:00
|
|
|
version = "0.8.3.1";
|
2013-10-03 13:35:34 +00:00
|
|
|
|
2014-11-14 12:03:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ettercap";
|
|
|
|
repo = "ettercap";
|
|
|
|
rev = "v${version}";
|
2020-08-01 23:23:39 +00:00
|
|
|
sha256 = "1sdf1ssa81ib6k0mc5m2jzbjl4jd1yv6ahv5dwx2x9w4b2pyqg1c";
|
2013-10-03 13:35:34 +00:00
|
|
|
};
|
|
|
|
|
2019-08-20 22:29:22 +00:00
|
|
|
strictDeps = true;
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake flex bison pkg-config ];
|
2013-10-03 13:35:34 +00:00
|
|
|
buildInputs = [
|
2019-08-20 22:29:22 +00:00
|
|
|
libpcap libnet zlib curl pcre openssl ncurses
|
2019-12-16 19:53:52 +00:00
|
|
|
glib gtk3 atk pango geoip harfbuzz
|
2013-10-03 13:35:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-11-14 12:03:23 +00:00
|
|
|
substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc \
|
|
|
|
--replace /usr \$\{INSTALL_PREFIX\}
|
2013-10-03 13:35:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2019-08-20 22:29:22 +00:00
|
|
|
"-DBUNDLED_LIBS=Off"
|
|
|
|
"-DGTK3_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
2013-10-03 13:35:34 +00:00
|
|
|
];
|
|
|
|
|
2019-12-16 19:53:52 +00:00
|
|
|
# TODO: Remove after the next release (0.8.4 should work without this):
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${harfbuzz.dev}/include/harfbuzz" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Comprehensive suite for man in the middle attacks";
|
2020-02-24 17:41:14 +00:00
|
|
|
longDescription = ''
|
|
|
|
Ettercap is a comprehensive suite for man in the middle attacks. It
|
|
|
|
features sniffing of live connections, content filtering on the fly and
|
|
|
|
many other interesting tricks. It supports active and passive dissection
|
|
|
|
of many protocols and includes many features for network and host
|
|
|
|
analysis.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.ettercap-project.org/";
|
2014-11-14 12:03:23 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2013-10-03 13:35:34 +00:00
|
|
|
};
|
|
|
|
}
|