python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / burpsuite / default.nix
blob846c966d00c4724949f58d423b70d6da6dc59d55
1 { lib, stdenv, fetchurl, jdk11, runtimeShell, unzip, chromium }:
3 stdenv.mkDerivation rec {
4   pname = "burpsuite";
5   version = "2021.12";
7   src = fetchurl {
8     name = "burpsuite.jar";
9     urls = [
10       "https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
11       "https://web.archive.org/web/https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
12     ];
13     sha256 = "sha256-BLX/SgHctXciOZoA6Eh4zuDJoxNSZgvoj2Teg1fV80g=";
14   };
16   dontUnpack = true;
17   dontBuild = true;
18   installPhase = ''
19     runHook preInstall
21     mkdir -p $out/bin
22     echo '#!${runtimeShell}
23     eval "$(${unzip}/bin/unzip -p ${src} chromium.properties)"
24     mkdir -p "$HOME/.BurpSuite/burpbrowser/$linux64"
25     ln -sf "${chromium}/bin/chromium" "$HOME/.BurpSuite/burpbrowser/$linux64/chrome"
26     exec ${jdk11}/bin/java -jar ${src} "$@"' > $out/bin/burpsuite
27     chmod +x $out/bin/burpsuite
29     runHook postInstall
30   '';
32   preferLocalBuild = true;
34   meta = with lib; {
35     description = "An integrated platform for performing security testing of web applications";
36     longDescription = ''
37       Burp Suite is an integrated platform for performing security testing of web applications.
38       Its various tools work seamlessly together to support the entire testing process, from
39       initial mapping and analysis of an application's attack surface, through to finding and
40       exploiting security vulnerabilities.
41     '';
42     homepage = "https://portswigger.net/burp/";
43     downloadPage = "https://portswigger.net/burp/freedownload";
44     sourceProvenance = with sourceTypes; [ binaryBytecode ];
45     license = licenses.unfree;
46     platforms = jdk11.meta.platforms;
47     hydraPlatforms = [];
48     maintainers = with maintainers; [ bennofs ];
49   };