Update linpeas.sh

This commit is contained in:
Carlos Polop 2020-08-17 15:11:41 +01:00 committed by GitHub
parent 59627f8e35
commit 0085679cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1157,7 +1157,7 @@ if [ "`echo $CHECKS | grep ProCronSrvcsTmrsSocks`" ]; then
printf $Y"[+] "$GREEN"D-Bus Service Objects list\n"$NC
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#d-bus\n"$NC
dbuslist=$(busctl list)
dbuslist=$(busctl list 2>/dev/null)
if [ "$dbuslist" ]; then
busctl list | while read line; do
echo "$line" | sed -E "s,$dbuslistG,${C}[1;32m&${C}[0m,g";