1
mirror of https://github.com/carlospolop/PEASS-ng synced 2025-03-25 05:46:23 +01:00

search scripts in path

This commit is contained in:
root 2019-06-03 23:21:10 +02:00
parent 7acf17745e
commit 0ca6f68586

@ -573,7 +573,7 @@ getcap -r / 2>/dev/null | sed "s,$sudocapsB,${C}[1;31m&${C}[0m," | sed "s,$capsB
echo "" >> $file
printf $Y"[+] "$GREEN".sh files in path\n"$NC >> $file
for d in `echo $PATH | tr ":" "\n"`; do find $d -name *.sh | sed "s,$pathshG,${C}[1;32m&${C}[0m," >> $file ; done
for d in `echo $PATH | tr ":" "\n"`; do find $d -name "*.sh" | sed "s,$pathshG,${C}[1;32m&${C}[0m," >> $file ; done
echo "" >> $file