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

40 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, runtimeShell }:
2016-10-01 14:26:34 +02:00
let
2019-04-10 04:48:42 +02:00
version = "1.7.36";
2016-10-01 14:26:34 +02:00
jar = fetchurl {
name = "burpsuite.jar";
url = "https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar";
2019-04-10 04:48:42 +02:00
sha256 = "12m4fn04yd89r6x4m4yd668p5v0bs9b1h6p239bjj11ykyi3g51a";
2016-10-01 14:26:34 +02:00
};
launcher = ''
#!${runtimeShell}
2016-10-01 14:26:34 +02:00
exec ${jre}/bin/java -jar ${jar} "$@"
'';
in stdenv.mkDerivation {
name = "burpsuite-${version}";
buildCommand = ''
mkdir -p $out/bin
echo "${launcher}" > $out/bin/burpsuite
chmod +x $out/bin/burpsuite
'';
preferLocalBuild = true;
2016-10-01 14:26:34 +02:00
meta = {
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 14:26:34 +02:00
downloadPage = "https://portswigger.net/burp/freedownload";
license = [ stdenv.lib.licenses.unfree ];
platforms = jre.meta.platforms;
hydraPlatforms = [];
maintainers = [ stdenv.lib.maintainers.bennofs ];
};
}