fix
This commit is contained in:
parent
be9544ab01
commit
fc1ce0dbec
@ -664,7 +664,7 @@ if [ "`echo $CHECKS | grep ProCronSrvcsTmrsSocks`" ] || [ "`echo $CHECKS | grep
|
|||||||
printf $GREEN"Caching directories "$NC
|
printf $GREEN"Caching directories "$NC
|
||||||
SYSTEMD_RELEVANT_NAMES="*.service"
|
SYSTEMD_RELEVANT_NAMES="*.service"
|
||||||
TIMERS_RELEVANT_NAMES="*.timer"
|
TIMERS_RELEVANT_NAMES="*.timer"
|
||||||
SOCKETS_RELEVANT_NAMES="*
|
SOCKETS_RELEVANT_NAMES="*.socket"
|
||||||
DBUS_RELEVANT_NAMES="system.d session.d"
|
DBUS_RELEVANT_NAMES="system.d session.d"
|
||||||
MYSQL_RELEVANT_NAMES="mysql"
|
MYSQL_RELEVANT_NAMES="mysql"
|
||||||
POSTGRESQL_RELEVANT_NAMES="pgadmin*.db pg_hba.conf postgresql.conf pgsql.conf"
|
POSTGRESQL_RELEVANT_NAMES="pgadmin*.db pg_hba.conf postgresql.conf pgsql.conf"
|
||||||
@ -1029,7 +1029,7 @@ if [ "`echo $CHECKS | grep ProCronSrvcsTmrsSocks`" ]; then
|
|||||||
socketslistpaths="`grep -Po '^(Listen).*?=[!@+-]*/[\w/\-]+' \"$s\" 2>/dev/null | cut -d '=' -f2 | sed 's,^[@\+!-]*,,'`"
|
socketslistpaths="`grep -Po '^(Listen).*?=[!@+-]*/[\w/\-]+' \"$s\" 2>/dev/null | cut -d '=' -f2 | sed 's,^[@\+!-]*,,'`"
|
||||||
for sl in $socketsbinpaths; do
|
for sl in $socketsbinpaths; do
|
||||||
if [ -w "$sl" ]; then
|
if [ -w "$sl" ]; then
|
||||||
echo "$s is calling this writable listener: $sl" | sed "s,writable.*,${C}[1;31m&${C}[0m,g"
|
echo "$s is calling this writable listener: $sl" | sed "s,writable.*,${C}[1;31m&${C}[0m,g";
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
@ -1052,6 +1052,7 @@ if [ "`echo $CHECKS | grep ProCronSrvcsTmrsSocks`" ]; then
|
|||||||
printf $Y"[+] "$GREEN"D-Bus config files\n"$NC
|
printf $Y"[+] "$GREEN"D-Bus config files\n"$NC
|
||||||
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#d-bus\n"$NC
|
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#d-bus\n"$NC
|
||||||
dbusfols=$(echo "$FIND_DIR_ETC" | grep -E '/dbus-1/system.d|/dbus-1/session.d')
|
dbusfols=$(echo "$FIND_DIR_ETC" | grep -E '/dbus-1/system.d|/dbus-1/session.d')
|
||||||
|
if [ "$dbusfols" ]; then
|
||||||
for d in "$dbusfols"; do
|
for d in "$dbusfols"; do
|
||||||
for f in $d/*; do
|
for f in $d/*; do
|
||||||
if [ -w "$f" ]; then
|
if [ -w "$f" ]; then
|
||||||
@ -1066,6 +1067,7 @@ if [ "`echo $CHECKS | grep ProCronSrvcsTmrsSocks`" ]; then
|
|||||||
#TODO: identify allows in context="default"
|
#TODO: identify allows in context="default"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user