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