depot/third_party/nixpkgs/pkgs/tools/security/shellnoob/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
722 B
Nix

{ 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 = "Shellcode writing toolkit";
homepage = "https://github.com/reyammer/shellnoob";
mainProgram = "snoob";
license = licenses.mit;
maintainers = with maintainers; [ emilytrau ];
};
}