Hey there!
I’m trying to get NixOS to use Burpsuite Pro instead of the Community Edition of Burpsuite that is typically provided by nixpkgs. I have been able to make that happen with an overlay, but I’m running into a problem where I am unable to use the embedded Chromium browser that is provided with Burpsuite Pro. What am I doing wrong here?
This is the overlay I am using:
(self: super: {
burpsuite = super.burpsuite.overrideAttrs ( oldAttrs : let
version = "2022.7.1";
jar = super.fetchurl {
name = "burpsuite.jar";
url = "https://portswigger.net/burp/releases/download?product=pro&version=${version}&type=Jar";
sha256 = "sha256-DKBe5Clqx58rCVHzhz4cpKNmJXbp2mMOfK1lgeP1afQ=";
};
jre = super.pkgs.jdk11;
launcher = ''
#!${super.runtimeShell}
exec ${jre}/bin/java -jar ${jar} "$@"
'';
in rec {
buildCommand = ''
mkdir -p $out/bin
echo "${launcher}" > $out/bin/burpsuite
chmod +x $out/bin/burpsuite
'';
});
})