if root no sockets
This commit is contained in:
parent
8ccf553b5b
commit
c7a98ee914
@ -1675,6 +1675,7 @@ if echo $CHECKS | grep -q ProCronSrvcsTmrsSocks; then
|
|||||||
|
|
||||||
#-- PSC) .socket files
|
#-- PSC) .socket files
|
||||||
#TODO: .socket files in MACOS are folders
|
#TODO: .socket files in MACOS are folders
|
||||||
|
if ! [ "$IAMROOT" ]; then
|
||||||
print_2title "Analyzing .socket files"
|
print_2title "Analyzing .socket files"
|
||||||
print_info "https://book.hacktricks.xyz/linux-unix/privilege-escalation#sockets"
|
print_info "https://book.hacktricks.xyz/linux-unix/privilege-escalation#sockets"
|
||||||
printf "%s\n" "$PSTORAGE_SOCKET" | while read s; do
|
printf "%s\n" "$PSTORAGE_SOCKET" | while read s; do
|
||||||
@ -1702,14 +1703,6 @@ if echo $CHECKS | grep -q ProCronSrvcsTmrsSocks; then
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
print_2title "Writable Sockets"
|
|
||||||
print_info "https://book.hacktricks.xyz/linux-unix/privilege-escalation#sockets"
|
|
||||||
find / -type s 2>/dev/null | while read l; do
|
|
||||||
if [ -w "$l" ]; then
|
|
||||||
echo "Socket '$l' is writable" | sed "s,.*,${SED_RED},";
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
print_2title "Unix Sockets Listening"
|
print_2title "Unix Sockets Listening"
|
||||||
print_info "https://book.hacktricks.xyz/linux-unix/privilege-escalation#sockets"
|
print_info "https://book.hacktricks.xyz/linux-unix/privilege-escalation#sockets"
|
||||||
# Search sockets using netstat and ss
|
# Search sockets using netstat and ss
|
||||||
@ -1747,6 +1740,7 @@ if echo $CHECKS | grep -q ProCronSrvcsTmrsSocks; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo ""
|
echo ""
|
||||||
|
fi
|
||||||
|
|
||||||
#-- PSC) Writable and weak policies in D-Bus config files
|
#-- PSC) Writable and weak policies in D-Bus config files
|
||||||
print_2title "D-Bus config files"
|
print_2title "D-Bus config files"
|
||||||
|
Loading…
Reference in New Issue
Block a user