diff --git a/customscripts/FIND_THE_FUCKING_PI b/customscripts/FIND_THE_FUCKING_PI index 5fd4ff0..9c9de33 100644 --- a/customscripts/FIND_THE_FUCKING_PI +++ b/customscripts/FIND_THE_FUCKING_PI @@ -1,7 +1,11 @@ #!/bin/bash +subnet="10.0.0.0/24" +delay=60 +count=0 while true; do - nmap -sV -Pn -T4 -p22 10.0.0.0/24 -oG - | grep -n '22/open/tcp' - echo next - sleep 60 + echo -e "\ndate $(date) count $count delay $delay subnet $subnet\n" + nmap -sV -Pn -T4 -p22 $subnet -oG - | grep -n '22/open/tcp' + sleep $delay + count=$((count + 1)) done