diff --git a/pkgs/tools/security/padbuster/default.nix b/pkgs/tools/security/padbuster/default.nix new file mode 100644 index 000000000000..de71010ccba5 --- /dev/null +++ b/pkgs/tools/security/padbuster/default.nix @@ -0,0 +1,34 @@ +{ lib, stdenv, fetchFromGitHub, perl }: + +stdenv.mkDerivation rec { + pname = "padbuster"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "AonCyberLabs"; + repo = pname; + rev = "50e4a3e2bf5dfff5699440b3ebc61ed1b5c49bbe"; + sha256 = "VIvZ28MVnTSQru6l8flLVVqIIpxxXD8lCqzH81sPe/U="; + }; + + buildInputs = [ + (perl.withPackages (ps: with ps; [ LWP LWPProtocolHttps CryptSSLeay ])) + ]; + + installPhase = '' + runHook preInstall + + install -Dm755 padBuster.pl $out/bin/padBuster.pl + + runHook postInstall + ''; + + meta = with lib; { + description = "Automated script for performing Padding Oracle attacks"; + homepage = "https://www.gdssecurity.com/l/t.php"; + mainProgram = "padBuster.pl"; + maintainers = with maintainers; [ emilytrau ]; + license = licenses.asl20; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ab743a3ff934..c2cc3e99115d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9490,6 +9490,8 @@ with pkgs; padthv1 = libsForQt5.callPackage ../applications/audio/padthv1 { }; + padbuster = callPackage ../tools/security/padbuster { }; + page = callPackage ../tools/misc/page { }; PageEdit = libsForQt5.callPackage ../applications/office/PageEdit { };