This commit is contained in:
Carlos.Martin
2021-08-11 00:45:29 +01:00
parent 22a9cbf152
commit 151708dcce
2 changed files with 2 additions and 2 deletions

View File

@@ -1709,7 +1709,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 -an) | grep -i listen) 2>/dev/null | sed -${E} "s,127.0.[0-9]+.[0-9]+,${SED_RED},"
( (netstat -punta || ss -ntpu || netstat -anv) | grep -i listen) 2>/dev/null | sed -${E} "s,127.0.[0-9]+.[0-9]+,${SED_RED},"
echo ""
#-- NI) MacOS hardware ports