From abedeabde442d96767d080e8dbd91b690b189834 Mon Sep 17 00:00:00 2001 From: "Elliot Speck (Arcayr)" Date: Sat, 26 Aug 2023 00:41:28 +1000 Subject: [PATCH 1/5] burpsuite: 2023.7.2 -> 2023.9.4 --- pkgs/tools/networking/burpsuite/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/burpsuite/default.nix b/pkgs/tools/networking/burpsuite/default.nix index f416685dea32..b66590f17c9a 100644 --- a/pkgs/tools/networking/burpsuite/default.nix +++ b/pkgs/tools/networking/burpsuite/default.nix @@ -1,14 +1,15 @@ { lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem }: let - version = "2023.7.2"; + version = "2023.9.4"; src = fetchurl { name = "burpsuite.jar"; urls = [ + "https://portswigger-cdn.net/burp/releases/download?product=community&version=${version}&type=Jar" "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" ]; - hash = "sha256-mpOG8sx+L+/kwgB3X9ALOvq+Rx1GC3JE2G7yVt1iQYg="; + hash = "sha256-OqtbimeWDZDePKvH0SKvfZxAXKhqFIQ49rdj7vkPckU="; }; name = "burpsuite-${version}"; @@ -69,11 +70,11 @@ buildFHSEnv { exploiting security vulnerabilities. ''; homepage = "https://portswigger.net/burp/"; - downloadPage = "https://portswigger.net/burp/freedownload"; + downloadPage = "https://portswigger.net/burp/communitydownload"; sourceProvenance = with sourceTypes; [ binaryBytecode ]; license = licenses.unfree; platforms = jdk.meta.platforms; hydraPlatforms = [ ]; - maintainers = with maintainers; [ bennofs ]; + maintainers = with maintainers; [ arcayr bennofs ]; }; } From 311d09417f35d517925c09f646bce0cf0447540c Mon Sep 17 00:00:00 2001 From: "Elliot Speck (Arcayr)" Date: Mon, 11 Sep 2023 18:08:35 +1000 Subject: [PATCH 2/5] burpsuite: Add support for professional edition Edition can be installed by overriding the 'proEdition' arg. --- pkgs/tools/networking/burpsuite/default.nix | 25 ++++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/networking/burpsuite/default.nix b/pkgs/tools/networking/burpsuite/default.nix index b66590f17c9a..7b2ab9cdf828 100644 --- a/pkgs/tools/networking/burpsuite/default.nix +++ b/pkgs/tools/networking/burpsuite/default.nix @@ -1,15 +1,25 @@ -{ lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem }: +{ lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem, proEdition ? false }: let version = "2023.9.4"; + product = if proEdition then { + productName = "pro"; + productDesktop = "Burp Suite Professional Edition"; + hash = "sha256-5n7xT+uWRoh1HREu62EcMBlK10ihTM5Gz+9yJl2jtiE="; + } else { + productName = "community"; + productDesktop = "Burp Suite Community Edition"; + hash = "sha256-OqtbimeWDZDePKvH0SKvfZxAXKhqFIQ49rdj7vkPckU="; + }; + src = fetchurl { name = "burpsuite.jar"; urls = [ - "https://portswigger-cdn.net/burp/releases/download?product=community&version=${version}&type=Jar" - "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" + "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" ]; - hash = "sha256-OqtbimeWDZDePKvH0SKvfZxAXKhqFIQ49rdj7vkPckU="; + hash = product.hash; }; name = "burpsuite-${version}"; @@ -18,7 +28,7 @@ let name = "burpsuite"; exec = name; icon = name; - desktopName = "Burp Suite Community Edition"; + desktopName = product.productDesktop; comment = description; categories = [ "Development" "Security" "System" ]; }; @@ -57,7 +67,7 @@ buildFHSEnv { 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" + ${lib.getBin unzip}/bin/unzip -p ${src} resources/Media/icon64${product.productName}.png > "$out/share/pixmaps/burpsuite.png" cp -r ${desktopItem}/share/applications $out/share ''; @@ -70,7 +80,6 @@ buildFHSEnv { exploiting security vulnerabilities. ''; homepage = "https://portswigger.net/burp/"; - downloadPage = "https://portswigger.net/burp/communitydownload"; sourceProvenance = with sourceTypes; [ binaryBytecode ]; license = licenses.unfree; platforms = jdk.meta.platforms; From b9b6de1573cea25a7302fd82f98f8d6e1b4313e2 Mon Sep 17 00:00:00 2001 From: "Elliot Speck (Arcayr)" Date: Sat, 16 Sep 2023 22:16:41 +1000 Subject: [PATCH 3/5] burpsuite: 2023.9.4 -> 2023.10.1.1 --- pkgs/tools/networking/burpsuite/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/burpsuite/default.nix b/pkgs/tools/networking/burpsuite/default.nix index 7b2ab9cdf828..9433a8f78d7d 100644 --- a/pkgs/tools/networking/burpsuite/default.nix +++ b/pkgs/tools/networking/burpsuite/default.nix @@ -1,15 +1,15 @@ { lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem, proEdition ? false }: let - version = "2023.9.4"; + version = "2023.10.1.1"; product = if proEdition then { productName = "pro"; productDesktop = "Burp Suite Professional Edition"; - hash = "sha256-5n7xT+uWRoh1HREu62EcMBlK10ihTM5Gz+9yJl2jtiE="; + hash = "sha256-xyEQVrfI9CS6div7vZuluKkIm36B9XqKZ9rH+1DjeD4="; } else { productName = "community"; productDesktop = "Burp Suite Community Edition"; - hash = "sha256-OqtbimeWDZDePKvH0SKvfZxAXKhqFIQ49rdj7vkPckU="; + hash = "sha256-lV1V92sxCiZ7AGjUNJHO9fkh3aUgt0+oISh7efBaOUA="; }; src = fetchurl { From 152086d88c6d2e78f800ce153d78b61c7f3ba5ea Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 10 Oct 2023 11:25:52 +0300 Subject: [PATCH 4/5] burpsuite: name cleanup now that buildFHSEnv works with pname and version --- pkgs/tools/networking/burpsuite/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/networking/burpsuite/default.nix b/pkgs/tools/networking/burpsuite/default.nix index 9433a8f78d7d..d442f70ac184 100644 --- a/pkgs/tools/networking/burpsuite/default.nix +++ b/pkgs/tools/networking/burpsuite/default.nix @@ -22,12 +22,12 @@ let hash = product.hash; }; - name = "burpsuite-${version}"; + pname = "burpsuite"; description = "An integrated platform for performing security testing of web applications"; - desktopItem = makeDesktopItem rec { + desktopItem = makeDesktopItem { name = "burpsuite"; - exec = name; - icon = name; + exec = pname; + icon = pname; desktopName = product.productDesktop; comment = description; categories = [ "Development" "Security" "System" ]; @@ -35,7 +35,7 @@ let in buildFHSEnv { - inherit name; + inherit pname version; runScript = "${jdk}/bin/java -jar ${src}"; @@ -65,7 +65,6 @@ buildFHSEnv { ]; 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/icon64${product.productName}.png > "$out/share/pixmaps/burpsuite.png" cp -r ${desktopItem}/share/applications $out/share From 6ce7f671dd1c9ef644e0dd82d027d7791d20fab6 Mon Sep 17 00:00:00 2001 From: "Elliot Speck (Arcayr)" Date: Mon, 6 Nov 2023 02:56:32 +1100 Subject: [PATCH 5/5] burpsuite: 2023.10.1.1 -> 2023.10.2.4 --- pkgs/tools/networking/burpsuite/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/burpsuite/default.nix b/pkgs/tools/networking/burpsuite/default.nix index d442f70ac184..416d2877e201 100644 --- a/pkgs/tools/networking/burpsuite/default.nix +++ b/pkgs/tools/networking/burpsuite/default.nix @@ -1,15 +1,15 @@ { lib, fetchurl, jdk, buildFHSEnv, unzip, makeDesktopItem, proEdition ? false }: let - version = "2023.10.1.1"; + version = "2023.10.2.4"; product = if proEdition then { productName = "pro"; productDesktop = "Burp Suite Professional Edition"; - hash = "sha256-xyEQVrfI9CS6div7vZuluKkIm36B9XqKZ9rH+1DjeD4="; + hash = "sha256-H5/nxVvAoGzRIAOchv9tAYyFgrodh7XugCTn2oUV9Tw="; } else { productName = "community"; productDesktop = "Burp Suite Community Edition"; - hash = "sha256-lV1V92sxCiZ7AGjUNJHO9fkh3aUgt0+oISh7efBaOUA="; + hash = "sha256-en+eay+XL09Vk6H011fYvxGluMAndedtqCo4dQZvbBM="; }; src = fetchurl {