1
mirror of https://github.com/carlospolop/PEASS-ng synced 2024-11-24 01:26:22 +01:00

Update linpeas.sh

This commit is contained in:
Carlos Polop 2020-04-29 09:28:18 +01:00 committed by GitHub
parent 638a6bfc0a
commit f5005667a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1704,7 +1704,7 @@ if [ "`echo $CHECKS | grep IntFiles`" ]; then
##-- 3IF) Misconfigured /etc/ld.so.conf.d/
printf $Y"[+] "$GREEN"Writable folders configured in /etc/ld.so.conf.d/\n"$NC
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#etc-ld-so-conf-d\n"$NC
(cat /etc/ld.so.conf.d/* 2>/dev/null | grep -v "#" | sed "s,$ldsoconfdG,${C}[1;32m&${C}[0m," | sed "s,$writeVB,${C}[1;31;103m&${C}[0m,") || echo_not_found
(cat /etc/ld.so.conf.d/* 2>/dev/null | grep -v "#" | sed "s,$ldsoconfdG,${C}[1;32m&${C}[0m," | sed "s,$Wfolders,${C}[1;31;103m&${C}[0m,g") || echo_not_found
echo ""
##-- 4IF) Capabilities