|
|
|
@ -8,6 +8,10 @@
|
|
|
|
|
scan_domain=$1
|
|
|
|
|
scan_ns=$2
|
|
|
|
|
|
|
|
|
|
# Static Configuration (Do not edit)
|
|
|
|
|
dns_time=5
|
|
|
|
|
dns_tries=1
|
|
|
|
|
|
|
|
|
|
# Check for and set RDP geometry config
|
|
|
|
|
case "$SORC_GEOM_RDP" in
|
|
|
|
|
[0123456789]*x*[0123456789]) geom_rdp=$SORC_GEOM_RDP;;
|
|
|
|
@ -26,7 +30,7 @@ get_hostip () {
|
|
|
|
|
host_ip=`echo $zone_xfer | grep $1 | grep A | awk '{print $3}'`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
zone_xfer=`dig $scan_domain @$scan_ns AXFR | egrep -v 'SOA|NS|MX|DiG' | grep $scan_domain | awk '{print $1,$4,$5}'`
|
|
|
|
|
zone_xfer=`dig $scan_domain @$scan_ns +time=$dns_time +tries=$dns_tries AXFR | egrep -v 'SOA|NS|MX|DiG' | grep $scan_domain | awk '{print $1,$4,$5}'`
|
|
|
|
|
while read host <&3; do
|
|
|
|
|
user_name=$3
|
|
|
|
|
connect_cmd="ssh -t"
|
|
|
|
|