Files
general-scripts-and-system-…/customscripts/FIND_THE_FUCKING_PI
T

12 lines
248 B
Bash

#!/bin/bash
subnet="10.0.0.0/24"
delay=60
count=1
while true; do
echo -e "\ndate $(date) count $count delay $delay subnet $subnet\n"
nmap -sV -O -Pn -p22 $subnet -oG - | grep -n '22/open/tcp'
sleep $delay
count=$((count + 1))
done