Merge pull request #94 from HomeSen/linpeas_fix_ss_bug
Fixed empty "Active Ports" output of LinPEAS, when ss is used
This commit is contained in:
commit
11618a488a
@ -1448,7 +1448,7 @@ if [ "`echo $CHECKS | grep Net`" ]; then
|
||||
#-- NI) Ports
|
||||
printf $Y"[+] "$GREEN"Active Ports\n"$NC
|
||||
printf $B"[i] "$Y"https://book.hacktricks.xyz/linux-unix/privilege-escalation#open-ports\n"$NC
|
||||
(netstat -punta || ss --ntpu || (netstat -a -p tcp && netstat -a -p udp) | grep -i listen) 2>/dev/null | sed -E "s,127.0.[0-9]+.[0-9]+,${C}[1;31m&${C}[0m,"
|
||||
(netstat -punta || ss -ntpu || (netstat -a -p tcp && netstat -a -p udp) | grep -i listen) 2>/dev/null | sed -E "s,127.0.[0-9]+.[0-9]+,${C}[1;31m&${C}[0m,"
|
||||
echo ""
|
||||
|
||||
#-- NI) tcpdump
|
||||
|
Loading…
Reference in New Issue
Block a user