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