mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
wordlists: init
This commit is contained in:
parent
3faae4152f
commit
598579db37
3 changed files with 60 additions and 1 deletions
|
@ -13,7 +13,8 @@ rec
|
|||
commander-x16 = pkg ./commander-x16 { };
|
||||
gef = pkg ./gef { };
|
||||
msfpc = pkg ./msfpc { };
|
||||
security-toolbox = pkg ./security-toolbox { inherit gef msfpc webshells weevely; };
|
||||
security-toolbox = pkg ./security-toolbox { inherit gef msfpc webshells weevely security-wordlists; };
|
||||
security-wordlists = pkg ./wordlists.nix { };
|
||||
SpaceCadetPinball = pkg ./SpaceCadetPinball { };
|
||||
stretchy-spaces = pkg ./stretchy-spaces { };
|
||||
webshells = pkg ./webshells { };
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
, nmap
|
||||
, openvpn
|
||||
, remmina
|
||||
, security-wordlists
|
||||
, socat
|
||||
, thc-hydra
|
||||
, webshells
|
||||
|
@ -70,6 +71,7 @@ symlinkJoin {
|
|||
nmap
|
||||
openvpn
|
||||
remmina
|
||||
security-wordlists
|
||||
socat
|
||||
thc-hydra
|
||||
webshells
|
||||
|
|
56
pkgs/wordlists.nix
Normal file
56
pkgs/wordlists.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, fetchFromGitLab
|
||||
, nmap
|
||||
, runCommand
|
||||
, wfuzz
|
||||
}:
|
||||
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=";
|
||||
};
|
||||
|
||||
rockyou = runCommand
|
||||
"rockyou.txt"
|
||||
{
|
||||
src = fetchFromGitLab {
|
||||
group = "kalilinux";
|
||||
owner = "packages";
|
||||
repo = "wordlists";
|
||||
rev = "upstream/0.3";
|
||||
sha256 = "1slsz9mzcbvfvx928drvf9ayq3q5wbfqgm0p1khxc7m9yf20ilm2";
|
||||
};
|
||||
}
|
||||
"gunzip <$src/rockyou.txt.gz >$out";
|
||||
|
||||
dirbuster = runCommand
|
||||
"dirbuster"
|
||||
{
|
||||
src = fetchFromGitLab {
|
||||
group = "kalilinux";
|
||||
owner = "packages";
|
||||
repo = "dirbuster";
|
||||
rev = "upstream/1.0";
|
||||
sha256 = "1500imrwhwr1zl59z1hq2bqhn05xjjl9lf3vp7dyx7dfx517i43y";
|
||||
};
|
||||
}
|
||||
"mkdir -p $out; cp -v $src/*.txt $out/";
|
||||
|
||||
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 ${seclists} $out/share/wordlists/seclists
|
||||
ln -s ${rockyou} $out/share/wordlists/rockyou.txt
|
||||
ln -s ${dirbuster} $out/share/wordlists/dirbuster
|
||||
''
|
Loading…
Reference in a new issue