mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
37 lines
977 B
Nix
37 lines
977 B
Nix
{ lib
|
|
, curl
|
|
, fetchFromGitHub
|
|
, nmap
|
|
, runCommand
|
|
, wfuzz
|
|
}:
|
|
let
|
|
|
|
seclists = fetchFromGitHub {
|
|
owner = "danielmiessler";
|
|
repo = "SecLists";
|
|
rev = "2022.3";
|
|
sha256 = "Q8d3aYRdmFxIcL47eeZnC57X5LaGshEimlsOH6+3Ahk=";
|
|
};
|
|
|
|
dirbuster = runCommand "dirbuster"
|
|
{
|
|
outputHashAlgo = "sha256";
|
|
outputHashMode = "recursive";
|
|
outputHash = "0l2sgagdxahqi7zqqw9v9v9g2gmqbdl2cyz0rvlmc4di6crdn36s";
|
|
}
|
|
''
|
|
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'
|
|
'';
|
|
|
|
in
|
|
runCommand "wordlists" { } ''
|
|
mkdir -p $out/share/wordlists
|
|
ln -s ${wfuzz.src}/wordlist $out/share/wordlists/wfuzz
|
|
ln -s ${nmap}/share/nmap/nselib/data $out/share/wordlists/nmap
|
|
ln -s ${seclists} $out/share/wordlists/seclists
|
|
ln -s ${dirbuster} $out/share/wordlists/dirbuster
|
|
''
|