Its got my name on it, so I uhhhh, made it... yup!
RAW SHIT:
#portscan disabled
211:* {
if $left(4,$right(5,$parm2)) isnum {
if (%porscan == $null) { set %bestport $left(4,$right(5,$parm2)) | set %bestportval $parm5 + $parm7 | set %porscan active | set %portlist $left(4,$right(5,$parm2)) }
else { set %portlist1 %portlist | set %portlist %portlist1 $+ , $+ $left(4,$right(5,$parm2)) | set %curval $parm5 + $parm7
if (%curval < %bestportval) { set %bestport $left(4,$right(5,$parm2)) | set %bestportval $parm5 + $parm7 | set %portlist1 %portlist | unset %portlist1 }
unset %curval } }
halt
}
219:*: {
if ($parm2 == l) { echo 2 -s *** Portscan report for 6 $+ $server $+ | echo 2 -s *** Availble ports are: %portlist | echo 2 -s *** Best port is: %bestport | echo 2 -s *** Best port traffic: %bestportval Kilobytes | echo 4 -s *** Done scanning ports on $server $+ ! | unset %portlist | unset %porscan | unset %bestportval | /.timer 1 20 /unset %bestport | /.timer 1 1 /.disable #portscan | halt }
}
#portscan end
ALIAS:
/portscan { /.enable #portscan | /echo 4 -s *** Scanning for all visible ports on $server $+ ! | /stats l }