···1717 # We need to force the autodetection because detection doesn't
1818 # work in pure build environments.
1919 configureFlags = [
2020- ("--with-pcap=" + {
2121- linux = "linux";
2222- darwin = "bpf";
2323- }.${stdenv.hostPlatform.parsed.kernel.name})
2020+ "--with-pcap=${if stdenv.isLinux then "linux" else "bpf"}"
2421 ] ++ optionals stdenv.isDarwin [
2522 "--disable-universal"
2623 ] ++ optionals (stdenv.hostPlatform == stdenv.buildPlatform)
···6161 builder = ./builder.sh;
62626363 meta = with lib; {
6464- maintainers = with maintainers; [matthewbauer];
6464+ maintainers = with maintainers; [ matthewbauer qyliss ];
6565 platforms = platforms.unix;
6666 license = licenses.bsd2;
6767 };
+13-2
pkgs/os-specific/darwin/darling/default.nix
···88 url = "https://github.com/darlinghq/darling/archive/d2cc5fa748003aaa70ad4180fff0a9a85dc65e9b.tar.gz";
99 sha256 = "11b51fw47nl505h63bgx5kqiyhf3glhp1q6jkpb6nqfislnzzkrf";
1010 postFetch = ''
1111- # Get rid of case conflict
1212- mkdir $out
1111+ # The archive contains both `src/opendirectory` and `src/OpenDirectory`,
1212+ # pre-create the directory to choose the canonical case on
1313+ # case-insensitive filesystems.
1414+ mkdir -p $out/src/OpenDirectory
1515+1316 cd $out
1417 tar -xzf $downloadedFile --strip-components=1
1518 rm -r $out/src/libm
1919+2020+ # If `src/opendirectory` and `src/OpenDirectory` refer to different
2121+ # things, then combine them into `src/OpenDirectory` to match the result
2222+ # on case-insensitive filesystems.
2323+ if [ "$(stat -c %i src/opendirectory)" != "$(stat -c %i src/OpenDirectory)" ]; then
2424+ mv src/opendirectory/* src/OpenDirectory/
2525+ rmdir src/opendirectory
2626+ fi
1627 '';
1728 };
1829
···11-{ buildGoModule
11+{ lib
22+, buildGoModule
23, fetchFromGitHub
33-, lib
44}:
5566buildGoModule rec {
77 pname = "ffuf";
88- version = "1.2.1";
88+ version = "1.3.0";
991010 src = fetchFromGitHub {
1111 owner = pname;
1212 repo = pname;
1313 rev = "v${version}";
1414- sha256 = "sha256-XSdFLfSYDdKI7BYo9emYanvZeSFGxiNLYxuw5QKAyRc=";
1414+ sha256 = "sha256-0ckpEiXxen2E9IzrsmKoEKagoJ5maAbH1tHKgQjoCjo=";
1515 };
16161717 vendorSha256 = "sha256-szT08rIozAuliOmge5RFX4NeVrJ2pCVyfotrHuvc0UU=";
1818-1919- # tests don't pass due to an issue with the memory addresses
2020- # https://github.com/ffuf/ffuf/issues/367
2121- doCheck = false;
22182319 meta = with lib; {
2420 description = "Fast web fuzzer written in Go";
+30
pkgs/tools/security/traitor/default.nix
···11+{ lib
22+, buildGoModule
33+, fetchFromGitHub
44+}:
55+66+buildGoModule rec {
77+ pname = "traitor";
88+ version = "0.0.3";
99+1010+ src = fetchFromGitHub {
1111+ owner = "liamg";
1212+ repo = pname;
1313+ rev = "v${version}";
1414+ sha256 = "0mffh4k87ybl0mpglgi2yfwksygrh62mcmkcmfcbszlh5pagsch1";
1515+ };
1616+1717+ vendorSha256 = null;
1818+1919+ meta = with lib; {
2020+ description = "Automatic Linux privilege escalation";
2121+ longDescription = ''
2222+ Automatically exploit low-hanging fruit to pop a root shell. Traitor packages
2323+ up a bunch of methods to exploit local misconfigurations and vulnerabilities
2424+ (including most of GTFOBins) in order to pop a root shell.
2525+ '';
2626+ homepage = "https://github.com/liamg/traitor";
2727+ license = with licenses; [ mit ];
2828+ maintainers = with maintainers; [ fab ];
2929+ };
3030+}