diff --git a/modules/security-tools.nix b/modules/security-tools.nix index 651db93..488a51b 100644 --- a/modules/security-tools.nix +++ b/modules/security-tools.nix @@ -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 = {