bettercap 2 is a complete reimplementation using go instead of ruby See: https://www.evilsocket.net/2018/02/27/All-hail-bettercap-2-0-one-tool-to-rule-them-all/
···1-{ lib, bundlerEnv, ruby, libpcap}:
23-bundlerEnv rec {
4 name = "bettercap-${version}";
056- version = (import gemset).bettercap.version;
7- inherit ruby;
8- gemdir = ./.;
9- gemset = ./gemset.nix;
0000001011- buildInputs = [ libpcap ruby ];
1213- meta = with lib; {
14 description = "A man in the middle tool";
15 longDescription = ''
16 BetterCAP is a powerful, flexible and portable tool created to perform various types of MITM attacks against a network, manipulate HTTP, HTTPS and TCP traffic in realtime, sniff for credentials and much more.
···1+{ stdenv, buildGoPackage, fetchFromGitHub, pkgconfig, libpcap, libnfnetlink, libnetfilter_queue }:
23+buildGoPackage rec {
4 name = "bettercap-${version}";
5+ version = "2.4";
67+ goPackagePath = "github.com/bettercap/bettercap";
8+9+ src = fetchFromGitHub {
10+ owner = "bettercap";
11+ repo = "bettercap";
12+ rev = "v${version}";
13+ sha256 = "1k1ank8z9sr3vxm86dfcrn1y3qa3gfwyb2z0fvkvi38gc88pfljb";
14+ };
15+16+ buildInputs = [libpcap libnfnetlink libnetfilter_queue pkgconfig];
1718+ goDeps = ./deps.nix;
1920+ meta = with stdenv.lib; {
21 description = "A man in the middle tool";
22 longDescription = ''
23 BetterCAP is a powerful, flexible and portable tool created to perform various types of MITM attacks against a network, manipulate HTTP, HTTPS and TCP traffic in realtime, sniff for credentials and much more.