2017-09-28 15:17:13 +01:00
|
|
|
{ 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
|
2019-08-20 23:29:22 +01:00
|
|
|
, pkgconfig }:
|
2013-10-03 14:35:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ettercap";
|
2020-08-02 00:23:39 +01:00
|
|
|
version = "0.8.3.1";
|
2013-10-03 14:35:34 +01:00
|
|
|
|
2014-11-14 12:03:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ettercap";
|
|
|
|
repo = "ettercap";
|
|
|
|
rev = "v${version}";
|
2020-08-02 00:23:39 +01:00
|
|
|
sha256 = "1sdf1ssa81ib6k0mc5m2jzbjl4jd1yv6ahv5dwx2x9w4b2pyqg1c";
|
2013-10-03 14:35:34 +01:00
|
|
|
};
|
|
|
|
|
2019-08-20 23:29:22 +01:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ cmake flex bison pkgconfig ];
|
2013-10-03 14:35:34 +01:00
|
|
|
buildInputs = [
|
2019-08-20 23:29:22 +01: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 14:35:34 +01: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 14:35:34 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2019-08-20 23:29:22 +01:00
|
|
|
"-DBUNDLED_LIBS=Off"
|
|
|
|
"-DGTK3_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
|
2013-10-03 14:35:34 +01: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" ];
|
|
|
|
|
2014-11-14 12:03:23 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-10-06 10:49:53 +01: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 02:11:51 +01: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 14:35:34 +01:00
|
|
|
};
|
|
|
|
}
|