From afe3fd1179b6cc9dc18fa52e6e07169dd816dd7f Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 24 Jul 2022 12:18:18 -0400 Subject: [PATCH] wordlists: maintenance --- pkgs/wordlists.nix | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/pkgs/wordlists.nix b/pkgs/wordlists.nix index 9b602cd..fd9afb1 100644 --- a/pkgs/wordlists.nix +++ b/pkgs/wordlists.nix @@ -7,28 +7,13 @@ }: let - nmap-data = runCommand "nmap-data" { } '' - tar --strip-components=1 -xvf ${nmap.src} - mv nselib/data $out - ''; - seclists = fetchFromGitHub { owner = "danielmiessler"; repo = "SecLists"; - rev = "cb81804316c634728bbddb857ce7dfa5016e01b1"; - sha256 = "QBlZlS8JJI6pIdIaD1I+7gMuPPfEybxybj2HrnQM7co="; + rev = "2022.2"; + sha256 = "Xi4FsrVYioR5HBVJzo0bug5ETgV2mCtulPOpBXm+Y1s="; }; - rockyou = runCommand "rockyou.txt" - { - outputHashAlgo = "sha256"; - outputHash = "0wv1d2b00x294irnqki9vvbicmysdsa1vphkqmhhbjs2fzm5y0qn"; - } - '' - url="https://gitlab.com/kalilinux/packages/wordlists/-/raw/upstream/0.3/rockyou.txt.gz" - ${curl}/bin/curl --insecure "$url" | gunzip >$out - ''; - dirbuster = runCommand "dirbuster" { outputHashAlgo = "sha256"; @@ -46,8 +31,7 @@ in runCommand "wordlists" { } '' mkdir -p $out/share/wordlists ln -s ${wfuzz.src}/wordlist $out/share/wordlists/wfuzz - ln -s ${nmap-data} $out/share/wordlists/nmap + ln -s ${nmap}/share/nmap/nselib/data $out/share/wordlists/nmap ln -s ${seclists} $out/share/wordlists/seclists - ln -s ${rockyou} $out/share/wordlists/rockyou.txt ln -s ${dirbuster} $out/share/wordlists/dirbuster ''