mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Merge pull request #1036 from offlinehacker/ettercap
Add ettercap, a comprehensive suite for man in the middle attacks
This commit is contained in:
commit
178e88e780
33
pkgs/applications/networking/sniffers/ettercap/default.nix
Normal file
33
pkgs/applications/networking/sniffers/ettercap/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ stdenv, fetchurl, cmake, libpcap, libnet, zlib, curl, pcre,
|
||||
openssl, ncurses, glib, gtk, atk, pango, flex, bison }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ettercap-${version}";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Ettercap/ettercap/archive/v${version}.tar.gz";
|
||||
sha256 = "1g69782wk2hag8h76jqy81szw5jhvqqnn3m4v0wjkbv9zjxy44w0";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cmake libpcap libnet zlib curl pcre openssl ncurses
|
||||
glib gtk atk pango flex bison
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace CMakeLists.txt --replace /etc \$\{INSTALL_PREFIX\}/etc
|
||||
'';
|
||||
|
||||
cmakeFlags = [
|
||||
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib}/lib/glib-2.0/include"
|
||||
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk}/lib/gtk-2.0/include"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Ettercap is a comprehensive suite for man in the middle attacks.";
|
||||
homepage = http://ettercap.github.io/ettercap/;
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
18
pkgs/development/libraries/libnet/default.nix
Normal file
18
pkgs/development/libraries/libnet/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libnet-${version}";
|
||||
version = "1.2-rc2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/libnet-dev/${name}.tar.gz";
|
||||
sha256 = "1pc74p839a7wvhjdgy0scj7c4yarr6mqdqvj56k6sp8pkc763az7";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://github.com/sam-github/libnet;
|
||||
description = "Libnet provides a portable framework for low-level network packet construction.";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
platforms = stdenv.lib.platforms.unix;
|
||||
};
|
||||
}
|
@ -825,6 +825,8 @@ let
|
||||
|
||||
ethtool = callPackage ../tools/misc/ethtool { };
|
||||
|
||||
ettercap = callPackage ../applications/networking/sniffers/ettercap { };
|
||||
|
||||
euca2ools = callPackage ../tools/virtualization/euca2ools { pythonPackages = python26Packages; };
|
||||
|
||||
evtest = callPackage ../applications/misc/evtest { };
|
||||
@ -4857,6 +4859,8 @@ let
|
||||
|
||||
libmusicbrainz = libmusicbrainz3;
|
||||
|
||||
libnet = callPackage ../development/libraries/libnet { };
|
||||
|
||||
libnetfilter_conntrack = callPackage ../development/libraries/libnetfilter_conntrack { };
|
||||
|
||||
libnetfilter_queue = callPackage ../development/libraries/libnetfilter_queue { };
|
||||
|
Loading…
Reference in New Issue
Block a user