Revert "burpsuite: 2021.12 -> 2022.12.7"

This reverts commit 6fc3dfa9d1.
This commit is contained in:
Benno Fünfstück 2023-01-30 12:06:54 +01:00
parent 6fc3dfa9d1
commit 880161efe1

View file

@ -1,46 +1,35 @@
{ lib, fetchurl, jdk, buildFHSUserEnv }: { lib, stdenv, fetchurl, jdk11, runtimeShell, unzip, chromium }:
let
version = "2022.12.7"; stdenv.mkDerivation rec {
pname = "burpsuite";
version = "2021.12";
src = fetchurl { src = fetchurl {
name = "burpsuite.jar"; name = "burpsuite.jar";
urls = [ urls = [
"https://portswigger.net/burp/releases/download?productId=100&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://web.archive.org/web/https://portswigger.net/Burp/Releases/Download?productId=100&version=${version}&type=Jar"
]; ];
sha256 = "2e354c2aadc58267bc282dde462d20b3aca7108077eb141d49f89a16172763cf"; sha256 = "sha256-BLX/SgHctXciOZoA6Eh4zuDJoxNSZgvoj2Teg1fV80g=";
}; };
in dontUnpack = true;
buildFHSUserEnv { dontBuild = true;
name = "burpsuite"; installPhase = ''
runHook preInstall
runScript = "${jdk}/bin/java -jar ${src}"; mkdir -p $out/bin
echo '#!${runtimeShell}
eval "$(${unzip}/bin/unzip -p ${src} chromium.properties)"
mkdir -p "$HOME/.BurpSuite/burpbrowser/$linux64"
ln -sf "${chromium}/bin/chromium" "$HOME/.BurpSuite/burpbrowser/$linux64/chrome"
exec ${jdk11}/bin/java -jar ${src} "$@"' > $out/bin/burpsuite
chmod +x $out/bin/burpsuite
targetPkgs = pkgs: with pkgs; [ runHook postInstall
alsa-lib '';
at-spi2-core
cairo preferLocalBuild = true;
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; { meta = with lib; {
description = "An integrated platform for performing security testing of web applications"; description = "An integrated platform for performing security testing of web applications";
@ -54,8 +43,8 @@ buildFHSUserEnv {
downloadPage = "https://portswigger.net/burp/freedownload"; downloadPage = "https://portswigger.net/burp/freedownload";
sourceProvenance = with sourceTypes; [ binaryBytecode ]; sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.unfree; license = licenses.unfree;
platforms = jdk.meta.platforms; platforms = jdk11.meta.platforms;
hydraPlatforms = [ ]; hydraPlatforms = [];
maintainers = with maintainers; [ bennofs ]; maintainers = with maintainers; [ bennofs ];
}; };
} }