11 stdenv.mkDerivation (finalAttrs: {
16 url = "mirror://sourceforge/dirbuster/DirBuster%20(jar%20%2B%20lists)/${finalAttrs.version}/DirBuster-${finalAttrs.version}.tar.bz2";
17 hash = "sha256-UoEt1NkaLsKux3lr+AB+TZCCshQs2hIo63igT39V68E=";
23 desktopName = "OWASP DirBuster";
26 comment = "Web Application Brute Forcing";
27 categories = [ "Network" ];
40 export JAR=$out/share/java/dirbuster.jar
41 install -Dm444 DirBuster-${finalAttrs.version}.jar $JAR
42 makeWrapper ${jdk8}/bin/java $out/bin/dirbuster \
43 --add-flags "-Duser.dir=$out/share/dirbuster/" \
44 --add-flags "-Xmx256M" \
45 --add-flags "-jar $JAR"
47 cp -r lib/ $out/share/java/lib/
50 mkdir -p $out/share/dirbuster
52 cp $f $out/share/dirbuster/
55 # Extract embedded desktop icon
56 mkdir -p $out/share/pixmaps
58 strings com/sittinglittleduck/DirBuster/ImageCreator.class | grep iVBORw0KG | base64 -d > $out/share/pixmaps/dirbuster.png
64 description = "Brute force directories and files names on web/application servers";
65 homepage = "https://wiki.owasp.org/index.php/Category:OWASP_DirBuster_Project";
66 license = lib.licenses.lgpl21Only;
67 mainProgram = "dirbuster";
68 maintainers = with lib.maintainers; [ emilytrau ];
69 platforms = lib.platforms.all;
70 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];