mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
wordlists: package more efficiently
This commit is contained in:
parent
77960cae18
commit
dff26385c3
1 changed files with 18 additions and 21 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, curl
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchFromGitLab
|
|
||||||
, nmap
|
, nmap
|
||||||
, runCommand
|
, runCommand
|
||||||
, wfuzz
|
, wfuzz
|
||||||
|
@ -19,31 +19,28 @@ let
|
||||||
sha256 = "QBlZlS8JJI6pIdIaD1I+7gMuPPfEybxybj2HrnQM7co=";
|
sha256 = "QBlZlS8JJI6pIdIaD1I+7gMuPPfEybxybj2HrnQM7co=";
|
||||||
};
|
};
|
||||||
|
|
||||||
rockyou = runCommand
|
rockyou = runCommand "rockyou.txt"
|
||||||
"rockyou.txt"
|
|
||||||
{
|
{
|
||||||
src = fetchFromGitLab {
|
outputHashAlgo = "sha256";
|
||||||
group = "kalilinux";
|
outputHash = "0wv1d2b00x294irnqki9vvbicmysdsa1vphkqmhhbjs2fzm5y0qn";
|
||||||
owner = "packages";
|
|
||||||
repo = "wordlists";
|
|
||||||
rev = "upstream/0.3";
|
|
||||||
sha256 = "1slsz9mzcbvfvx928drvf9ayq3q5wbfqgm0p1khxc7m9yf20ilm2";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
"gunzip <$src/rockyou.txt.gz >$out";
|
''
|
||||||
|
url="https://gitlab.com/kalilinux/packages/wordlists/-/raw/upstream/0.3/rockyou.txt.gz"
|
||||||
|
${curl}/bin/curl --insecure "$url" | gunzip >$out
|
||||||
|
'';
|
||||||
|
|
||||||
dirbuster = runCommand
|
dirbuster = runCommand "dirbuster"
|
||||||
"dirbuster"
|
|
||||||
{
|
{
|
||||||
src = fetchFromGitLab {
|
outputHashAlgo = "sha256";
|
||||||
group = "kalilinux";
|
outputHashMode = "recursive";
|
||||||
owner = "packages";
|
outputHash = "0l2sgagdxahqi7zqqw9v9v9g2gmqbdl2cyz0rvlmc4di6crdn36s";
|
||||||
repo = "dirbuster";
|
|
||||||
rev = "upstream/1.0";
|
|
||||||
sha256 = "1500imrwhwr1zl59z1hq2bqhn05xjjl9lf3vp7dyx7dfx517i43y";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
"mkdir -p $out; cp -v $src/*.txt $out/";
|
''
|
||||||
|
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
|
in
|
||||||
runCommand "wordlists" { } ''
|
runCommand "wordlists" { } ''
|
||||||
|
|
Loading…
Reference in a new issue