1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/tools/networking/burpsuite/default.nix
2020-01-25 22:17:39 +01:00

41 lines
1.3 KiB
Nix

{ stdenv, fetchurl, jre, runtimeShell }:
let
version = "2.1.07";
jar = fetchurl {
name = "burpsuite.jar";
url = "https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar";
sha256 = "0811pkxmwl9d58lgqbvyfi2q79ni5w8hs61jycxkvkqxrinpgki3";
};
launcher = ''
#!${runtimeShell}
exec ${jre}/bin/java -jar ${jar} "$@"
'';
in stdenv.mkDerivation {
pname = "burpsuite";
inherit version;
buildCommand = ''
mkdir -p $out/bin
echo "${launcher}" > $out/bin/burpsuite
chmod +x $out/bin/burpsuite
'';
preferLocalBuild = true;
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/;
downloadPage = "https://portswigger.net/burp/freedownload";
license = [ stdenv.lib.licenses.unfree ];
platforms = jre.meta.platforms;
hydraPlatforms = [];
maintainers = with stdenv.lib.maintainers; [ bennofs ];
};
}