User File Script
User File Script
/bin/bash
temp=/root/$filename
while :
do
nmap -sV $port $ip >> $temp #tailor nmap script to specific use
if grep -q open $temp && ! grep filtered $temp; then
time=$(date +%T)
echo -e PORT $portnum OPENED AT $time
break
else #Closed port selection results in spam. Type Ctrl+C in terminal to stop
echo PORT $portnum CLOSED OR FILTERED.
done