mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
replace security-wordlists with seclists
This commit is contained in:
parent
b62f9d49bc
commit
439e1b00da
3 changed files with 21 additions and 38 deletions
|
@ -31,7 +31,7 @@ in
|
|||
postman
|
||||
pwndbg
|
||||
remmina
|
||||
security-wordlists
|
||||
seclists
|
||||
socat
|
||||
thc-hydra
|
||||
webshells
|
||||
|
@ -39,6 +39,11 @@ in
|
|||
wfuzz
|
||||
];
|
||||
|
||||
system.activationScripts.seclists = ''
|
||||
mkdir -m 0755 -p /usr/share
|
||||
ln -sf /run/current-system/sw/share/seclists /usr/share/
|
||||
'';
|
||||
|
||||
programs = {
|
||||
wireshark.enable = true;
|
||||
wireshark.package = pkgs.wireshark;
|
||||
|
|
15
pkgs/seclists.nix
Normal file
15
pkgs/seclists.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ fetchFromGitHub, runCommand }:
|
||||
let
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "danielmiessler";
|
||||
repo = "SecLists";
|
||||
rev = "2022.4";
|
||||
sha256 = "CCj662K1+CstJmFKeB+vbPomkxyErzY3mJcOrWs9cf4=";
|
||||
};
|
||||
|
||||
in
|
||||
runCommand "seclists" { } ''
|
||||
mkdir -p $out/share
|
||||
ln -s ${src} $out/share/seclists
|
||||
''
|
|
@ -1,37 +0,0 @@
|
|||
{ 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
|
||||
''
|
Loading…
Reference in a new issue