about summary refs log tree commit diff
path: root/pkgs/tools/security/shellnoob
diff options
context:
space:
mode:
authorEmily Trau <me@angus.ws>2022-08-07 04:09:00 +1000
committerEmily Trau <me@angus.ws>2022-08-07 04:51:24 +1000
commitf71d32da64f46e5ed7d9d6c0d412943636e8d83a (patch)
treebf5eccd99e1537de4647bc6b62d95a87b6e88856 /pkgs/tools/security/shellnoob
parentf71850fd078bd618fe88384ccf07c0c012b87bbb (diff)
shellnoob: init at unstable-2022-03-16
Diffstat (limited to 'pkgs/tools/security/shellnoob')
-rw-r--r--pkgs/tools/security/shellnoob/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/security/shellnoob/default.nix b/pkgs/tools/security/shellnoob/default.nix
new file mode 100644
index 0000000000000..f7814b24384bb
--- /dev/null
+++ b/pkgs/tools/security/shellnoob/default.nix
@@ -0,0 +1,33 @@
+{ lib, stdenvNoCC, fetchFromGitHub, python3 }:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "shellnoob";
+  version = "unstable-2022-03-16";
+
+  src = fetchFromGitHub {
+    owner = "reyammer";
+    repo = pname;
+    rev = "72cf49804d8ea3de1faa7fae5794449301987bff";
+    sha256 = "xF9OTFFe8godW4+z9MFaFEkjE9FB42bKWwdl9xRcmEo=";
+  };
+
+  buildInputs = [
+    python3
+  ];
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm755 shellnoob.py $out/bin/snoob
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "A shellcode writing toolkit";
+    homepage = "https://github.com/reyammer/shellnoob";
+    mainProgram = "snoob";
+    license = licenses.mit;
+    maintainers = with maintainers; [ emilytrau ];
+  };
+}