about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-04-18 19:30:51 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2024-04-18 19:30:51 +0200
commit7de6e523c1249a3bd4b80342374b059e5b53cd7e (patch)
tree1695b09e7373a0e0ccc71d44a7a6c7709699a6f3 /pkgs/by-name
parentede6e2b78ea1d9ee253c93930953ff2ed39e18a8 (diff)
gtfocli: init at 0.0.4
GTFO Command Line Interface for search binaries commands to bypass
local security restrictions

https://github.com/cmd-tools/gtfocli
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/gt/gtfocli/package.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/gt/gtfocli/package.nix b/pkgs/by-name/gt/gtfocli/package.nix
new file mode 100644
index 0000000000000..3ce328daa0242
--- /dev/null
+++ b/pkgs/by-name/gt/gtfocli/package.nix
@@ -0,0 +1,33 @@
+{
+  lib,
+  buildGoModule,
+  fetchFromGitHub,
+}:
+
+buildGoModule rec {
+  pname = "gtfocli";
+  version = "0.0.4";
+
+  src = fetchFromGitHub {
+    owner = "cmd-tools";
+    repo = "gtfocli";
+    rev = "refs/tags/${version}";
+    hash = "sha256-fSk/OyeUffYZOkHXM1m/a9traDxdllYBieMEfsv910Q=";
+  };
+
+  vendorHash = "sha256-yhN2Ve4mBw1HoC3zXYz+M8+2CimLGduG9lGTXi+rPNw=";
+
+  ldflags = [
+    "-s"
+    "-w"
+  ];
+
+  meta = with lib; {
+    description = "GTFO Command Line Interface for search binaries commands to bypass local security restrictions";
+    homepage = "https://github.com/cmd-tools/gtfocli";
+    changelog = "https://github.com/cmd-tools/gtfocli/releases/tag/${version}";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fab ];
+    mainProgram = "gtfocli";
+  };
+}