diff --git a/pkgs/burpsuite.nix b/pkgs/burpsuite.nix new file mode 100644 index 0000000..6859df7 --- /dev/null +++ b/pkgs/burpsuite.nix @@ -0,0 +1,61 @@ +{ lib, fetchurl, jdk, buildFHSUserEnv }: +let + version = "2022.12.6"; + + src = fetchurl { + 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" + ]; + sha256 = "17ba975e5b0ee57e0d2c285160ab842cd1830858cd4ade6c874d293f45a9e01e"; + }; + +in +buildFHSUserEnv { + name = "burpsuite"; + + runScript = "${jdk}/bin/java -jar ${src}"; + + targetPkgs = pkgs: with pkgs; [ + alsa-lib + at-spi2-core + cairo + cups + dbus + expat + glib + gtk3 + libdrm + libudev0-shim + libxkbcommon + mesa_drivers + nspr + nss + pango + xorg.libX11 + xorg.libxcb + xorg.libXcomposite + xorg.libXdamage + xorg.libXext + xorg.libXfixes + xorg.libXrandr + ]; + + meta = with lib; { + 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"; + sourceProvenance = with sourceTypes; [ binaryBytecode ]; + license = licenses.unfree; + platforms = jdk.meta.platforms; + hydraPlatforms = [ ]; + maintainers = with maintainers; [ bennofs ]; + }; +}