nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "traitor";
9 version = "0.0.14";
10
11 src = fetchFromGitHub {
12 owner = "liamg";
13 repo = "traitor";
14 rev = "v${version}";
15 sha256 = "sha256-LQfKdjZaTm5z8DUt6He/RJHbOUCUwP3CV3Fyt5rJIfU=";
16 };
17
18 vendorHash = null;
19
20 meta = {
21 description = "Automatic Linux privilege escalation";
22 longDescription = ''
23 Automatically exploit low-hanging fruit to pop a root shell. Traitor packages
24 up a bunch of methods to exploit local misconfigurations and vulnerabilities
25 (including most of GTFOBins) in order to pop a root shell.
26 '';
27 homepage = "https://github.com/liamg/traitor";
28 platforms = lib.platforms.linux;
29 license = with lib.licenses; [ mit ];
30 maintainers = with lib.maintainers; [ fab ];
31 };
32}