diff --git a/linPEAS/linpeas.sh b/linPEAS/linpeas.sh index 2bba3b1..542c618 100755 --- a/linPEAS/linpeas.sh +++ b/linPEAS/linpeas.sh @@ -479,6 +479,7 @@ check_icmp(){ /bin/bash -c '(ping -c 1 1.1.1.1 | grep "1 received" && echo "icmp is available" || echo "icmp is not available") 2>/dev/null | grep "available"' } #DNS function from: https://unix.stackexchange.com/questions/600194/create-dns-query-with-netcat-or-dev-udp +#I cannot use this function because timeout doesn't find it, so it's copy/pasted below check_dns(){ /bin/bash -c '(( echo cfc9 0100 0001 0000 0000 0000 0a64 7563 6b64 7563 6b67 6f03 636f 6d00 0001 0001 | xxd -p -r >&3; dd bs=9000 count=1 <&3 2>/dev/null | xxd ) 3>/dev/udp/1.1.1.1/53 && echo "DNS available" || echo "DNS not available") 2>/dev/null | grep "available"' } @@ -1371,7 +1372,7 @@ if [ "`echo $CHECKS | grep Net`" ]; then check_tcp_80 & check_tcp_443 & check_icmp & - check_dns & + timeout 10 /bin/bash -c '(( echo cfc9 0100 0001 0000 0000 0000 0a64 7563 6b64 7563 6b67 6f03 636f 6d00 0001 0001 | xxd -p -r >&3; dd bs=9000 count=1 <&3 2>/dev/null | xxd ) 3>/dev/udp/1.11.1.1/53 && echo "DNS available" || echo "DNS not available") 2>/dev/null | grep "available"' 2>/dev/null & wait echo "" fi