about summary refs log tree commit diff
path: root/pkgs/tools/security/traitor
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-18 14:00:57 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-18 14:06:38 +0200
commit1c038b1c5abf834400a95154384e9a0f6c8f1a88 (patch)
tree74b1a400dfe97b58d34b9b5cde8f2ebe0e0e1ad9 /pkgs/tools/security/traitor
parent96a4f3f97c2644abf20ca19575d92aae5ac15420 (diff)
traitor: init at 0.0.3
Diffstat (limited to 'pkgs/tools/security/traitor')
-rw-r--r--pkgs/tools/security/traitor/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/security/traitor/default.nix b/pkgs/tools/security/traitor/default.nix
new file mode 100644
index 0000000000000..8718c92cd3d7f
--- /dev/null
+++ b/pkgs/tools/security/traitor/default.nix
@@ -0,0 +1,30 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "traitor";
+  version = "0.0.3";
+
+  src = fetchFromGitHub {
+    owner = "liamg";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0mffh4k87ybl0mpglgi2yfwksygrh62mcmkcmfcbszlh5pagsch1";
+  };
+
+  vendorSha256 = null;
+
+  meta = with lib; {
+    description = "Automatic Linux privilege escalation";
+    longDescription = ''
+      Automatically exploit low-hanging fruit to pop a root shell. Traitor packages
+      up a bunch of methods to exploit local misconfigurations and vulnerabilities
+      (including most of GTFOBins) in order to pop a root shell.
+    '';
+    homepage = "https://github.com/liamg/traitor";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}