mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add searchsploit tool
This commit is contained in:
parent
950fb296ae
commit
55c07f02e1
1 changed files with 14 additions and 0 deletions
|
@ -16,6 +16,20 @@
|
|||
pwndbg
|
||||
thc-hydra
|
||||
metasploit
|
||||
|
||||
(writeShellScriptBin "searchsploit" ''
|
||||
set -e
|
||||
(
|
||||
cd ~/.cache
|
||||
[ -e exploitdb ] || git clone https://github.com/offensive-security/exploitdb.git
|
||||
cd exploitdb
|
||||
if find .git -maxdepth 0 -cmin +60 | grep -q git
|
||||
then
|
||||
git pull
|
||||
fi
|
||||
)
|
||||
exec ~/.cache/exploitdb/searchsploit "$@"
|
||||
'')
|
||||
];
|
||||
|
||||
programs = {
|
||||
|
|
Loading…
Reference in a new issue