2023-09-11 08:08:35 +00:00
|
|
|
{ lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem, proEdition ? false }:
|
2023-01-11 03:13:45 +00:00
|
|
|
let
|
2023-11-05 15:56:32 +00:00
|
|
|
version = "2023.10.2.4";
|
2020-12-27 13:27:54 +00:00
|
|
|
|
2023-09-11 08:08:35 +00:00
|
|
|
product = if proEdition then {
|
|
|
|
productName = "pro";
|
|
|
|
productDesktop = "Burp Suite Professional Edition";
|
2023-11-05 15:56:32 +00:00
|
|
|
hash = "sha256-H5/nxVvAoGzRIAOchv9tAYyFgrodh7XugCTn2oUV9Tw=";
|
2023-09-11 08:08:35 +00:00
|
|
|
} else {
|
|
|
|
productName = "community";
|
|
|
|
productDesktop = "Burp Suite Community Edition";
|
2023-11-05 15:56:32 +00:00
|
|
|
hash = "sha256-en+eay+XL09Vk6H011fYvxGluMAndedtqCo4dQZvbBM=";
|
2023-09-11 08:08:35 +00:00
|
|
|
};
|
|
|
|
|
2020-12-27 13:27:54 +00:00
|
|
|
src = fetchurl {
|
2016-10-01 12:26:34 +00:00
|
|
|
name = "burpsuite.jar";
|
2021-05-01 09:07:41 +00:00
|
|
|
urls = [
|
2023-09-11 08:08:35 +00:00
|
|
|
"https://portswigger-cdn.net/burp/releases/download?product=${product.productName}&version=${version}&type=Jar"
|
|
|
|
"https://portswigger.net/burp/releases/download?product=${product.productName}&version=${version}&type=Jar"
|
|
|
|
"https://web.archive.org/web/https://portswigger.net/burp/releases/download?product=${product.productName}&version=${version}&type=Jar"
|
2021-05-01 09:07:41 +00:00
|
|
|
];
|
2023-09-11 08:08:35 +00:00
|
|
|
hash = product.hash;
|
2016-10-01 12:26:34 +00:00
|
|
|
};
|
2020-12-27 13:27:54 +00:00
|
|
|
|
2023-10-10 08:25:52 +00:00
|
|
|
pname = "burpsuite";
|
2023-01-30 11:37:25 +00:00
|
|
|
description = "An integrated platform for performing security testing of web applications";
|
2023-10-10 08:25:52 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
2023-01-30 11:37:25 +00:00
|
|
|
name = "burpsuite";
|
2023-10-10 08:25:52 +00:00
|
|
|
exec = pname;
|
|
|
|
icon = pname;
|
2023-09-11 08:08:35 +00:00
|
|
|
desktopName = product.productDesktop;
|
2023-01-30 11:37:25 +00:00
|
|
|
comment = description;
|
|
|
|
categories = [ "Development" "Security" "System" ];
|
|
|
|
};
|
|
|
|
|
2023-01-11 03:13:45 +00:00
|
|
|
in
|
2023-04-11 10:52:27 +00:00
|
|
|
buildFHSEnv {
|
2023-10-10 08:25:52 +00:00
|
|
|
inherit pname version;
|
2020-12-27 13:27:54 +00:00
|
|
|
|
2023-01-11 03:13:45 +00:00
|
|
|
runScript = "${jdk}/bin/java -jar ${src}";
|
2016-10-01 12:26:34 +00:00
|
|
|
|
2023-01-11 03:13:45 +00:00
|
|
|
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
|
|
|
|
];
|
2017-12-05 22:20:11 +00:00
|
|
|
|
2023-01-30 11:37:25 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
mkdir -p "$out/share/pixmaps"
|
2023-09-11 08:08:35 +00:00
|
|
|
${lib.getBin unzip}/bin/unzip -p ${src} resources/Media/icon64${product.productName}.png > "$out/share/pixmaps/burpsuite.png"
|
2023-01-30 11:37:25 +00:00
|
|
|
cp -r ${desktopItem}/share/applications $out/share
|
|
|
|
'';
|
|
|
|
|
2020-12-27 13:27:54 +00:00
|
|
|
meta = with lib; {
|
2023-01-30 11:37:25 +00:00
|
|
|
inherit description;
|
2016-10-01 12:26:34 +00:00
|
|
|
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.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://portswigger.net/burp/";
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-12-27 13:27:54 +00:00
|
|
|
license = licenses.unfree;
|
2023-01-11 03:13:45 +00:00
|
|
|
platforms = jdk.meta.platforms;
|
|
|
|
hydraPlatforms = [ ];
|
2023-08-25 14:41:28 +00:00
|
|
|
maintainers = with maintainers; [ arcayr bennofs ];
|
2016-10-01 12:26:34 +00:00
|
|
|
};
|
|
|
|
}
|