2021-11-18 05:17:43 +00:00
|
|
|
{ lib
|
2022-04-08 14:33:43 +00:00
|
|
|
, curl
|
2021-11-18 05:17:43 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, nmap
|
|
|
|
, runCommand
|
|
|
|
, wfuzz
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
|
|
|
|
seclists = fetchFromGitHub {
|
|
|
|
owner = "danielmiessler";
|
|
|
|
repo = "SecLists";
|
2022-10-24 20:33:41 +00:00
|
|
|
rev = "2022.3";
|
|
|
|
sha256 = "Q8d3aYRdmFxIcL47eeZnC57X5LaGshEimlsOH6+3Ahk=";
|
2021-11-18 05:17:43 +00:00
|
|
|
};
|
|
|
|
|
2022-04-08 14:33:43 +00:00
|
|
|
dirbuster = runCommand "dirbuster"
|
2021-11-18 05:17:43 +00:00
|
|
|
{
|
2022-04-08 14:33:43 +00:00
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = "0l2sgagdxahqi7zqqw9v9v9g2gmqbdl2cyz0rvlmc4di6crdn36s";
|
2021-11-18 05:17:43 +00:00
|
|
|
}
|
2022-04-08 14:33:43 +00:00
|
|
|
''
|
|
|
|
url="https://gitlab.com/kalilinux/packages/dirbuster/-/archive/upstream/1.0/dirbuster-upstream-1.0.tar.gz"
|
|
|
|
mkdir $out
|
|
|
|
${curl}/bin/curl --insecure "$url" |
|
|
|
|
tar -C$out -xvz --strip-components=1 --wildcards '*.txt'
|
|
|
|
'';
|
2021-11-18 05:17:43 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
runCommand "wordlists" { } ''
|
|
|
|
mkdir -p $out/share/wordlists
|
|
|
|
ln -s ${wfuzz.src}/wordlist $out/share/wordlists/wfuzz
|
2022-07-24 16:18:18 +00:00
|
|
|
ln -s ${nmap}/share/nmap/nselib/data $out/share/wordlists/nmap
|
2021-11-18 05:17:43 +00:00
|
|
|
ln -s ${seclists} $out/share/wordlists/seclists
|
|
|
|
ln -s ${dirbuster} $out/share/wordlists/dirbuster
|
|
|
|
''
|