nixpkgs/pkgs/tools/networking/burpsuite/default.nix

50 lines
1.7 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, jdk11, runtimeShell, unzip, chromium }:
2016-10-01 12:26:34 +00:00
stdenv.mkDerivation rec {
pname = "burpsuite";
2021-06-05 01:54:30 +00:00
version = "2021.6";
src = fetchurl {
2016-10-01 12:26:34 +00:00
name = "burpsuite.jar";
urls = [
"https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
"https://web.archive.org/web/https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
];
2021-06-05 01:54:30 +00:00
sha256 = "sha256-DPUi/KRnJkwrc7KMq10+LE6+MX9yJLgrgIHKhlfL+vc=";
2016-10-01 12:26:34 +00:00
};
dontUnpack = true;
dontBuild = true;
installPhase = ''
runHook preInstall
2016-10-01 12:26:34 +00:00
mkdir -p $out/bin
echo '#!${runtimeShell}
eval "$(${unzip}/bin/unzip -p ${src} chromium.properties)"
mkdir -p "$HOME/.BurpSuite/burpbrowser/$linux64"
ln -sf "${chromium}/bin/chromium" "$HOME/.BurpSuite/burpbrowser/$linux64/chrome"
exec ${jdk11}/bin/java -jar ${src} "$@"' > $out/bin/burpsuite
2016-10-01 12:26:34 +00:00
chmod +x $out/bin/burpsuite
runHook postInstall
2016-10-01 12:26:34 +00:00
'';
preferLocalBuild = true;
meta = with lib; {
2016-10-01 12:26:34 +00:00
description = "An integrated platform for performing security testing of web applications";
longDescription = ''
Burp Suite is an integrated platform for performing security testing of web applications.
Its various tools work seamlessly together to support the entire testing process, from
initial mapping and analysis of an application's attack surface, through to finding and
exploiting security vulnerabilities.
'';
homepage = "https://portswigger.net/burp/";
2016-10-01 12:26:34 +00:00
downloadPage = "https://portswigger.net/burp/freedownload";
license = licenses.unfree;
platforms = jdk11.meta.platforms;
2016-10-01 12:26:34 +00:00
hydraPlatforms = [];
maintainers = with maintainers; [ bennofs ];
2016-10-01 12:26:34 +00:00
};
}