Update linpeas_base.sh

This commit is contained in:
Carlos Polop 2021-11-10 22:18:56 +00:00 committed by GitHub
parent dc72293b77
commit 83909f7fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1846,7 +1846,7 @@ if echo $CHECKS | grep -q Net; then
#-- NI) Ports
print_2title "Active Ports"
print_info "https://book.hacktricks.xyz/linux-unix/privilege-escalation#open-ports"
( (netstat -punta || ss -ntpu || netstat -anv) | grep -i listen) 2>/dev/null | sed -${E} "s,127.0.[0-9]+.[0-9]+|:::|::1:|0\.0\.0\.0,${SED_RED},"
( (netstat -punta || ss -nltpu || netstat -anv) | grep -i listen) 2>/dev/null | sed -${E} "s,127.0.[0-9]+.[0-9]+|:::|::1:|0\.0\.0\.0,${SED_RED},"
echo ""
#-- NI) MacOS hardware ports