2023-02-02 18:25:31 +00:00
|
|
|
{ lib, fetchurl, jdk, buildFHSUserEnv, unzip, makeDesktopItem }:
|
|
|
|
let
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "2023.2.4";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "burpsuite.jar";
|
2021-05-20 23:08:51 +00:00
|
|
|
urls = [
|
2023-02-02 18:25:31 +00:00
|
|
|
"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"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "4e9cd298a03af8684306ca2dfe52e630f032c1df7ca8baecbd329c792137052f";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
name = "burpsuite-${version}";
|
|
|
|
description = "An integrated platform for performing security testing of web applications";
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
|
|
name = "burpsuite";
|
|
|
|
exec = name;
|
|
|
|
icon = name;
|
|
|
|
desktopName = "Burp Suite Community Edition";
|
|
|
|
comment = description;
|
|
|
|
categories = [ "Development" "Security" "System" ];
|
|
|
|
};
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
in
|
|
|
|
buildFHSUserEnv {
|
|
|
|
inherit name;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runScript = "${jdk}/bin/java -jar ${src}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +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
|
|
|
|
];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
mv "$out/bin/${name}" "$out/bin/burpsuite" # name includes the version number
|
|
|
|
mkdir -p "$out/share/pixmaps"
|
|
|
|
${lib.getBin unzip}/bin/unzip -p ${src} resources/Media/icon64community.png > "$out/share/pixmaps/burpsuite.png"
|
|
|
|
cp -r ${desktopItem}/share/applications $out/share
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2023-02-02 18:25:31 +00:00
|
|
|
inherit description;
|
2020-04-24 23:36:52 +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.
|
|
|
|
'';
|
|
|
|
homepage = "https://portswigger.net/burp/";
|
|
|
|
downloadPage = "https://portswigger.net/burp/freedownload";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.unfree;
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = jdk.meta.platforms;
|
|
|
|
hydraPlatforms = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ bennofs ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|