You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
410 B
16 lines
410 B
#!/usr/bin/env sh
|
|
|
|
# ARGUMENTS:
|
|
# $1 == Domain to scan
|
|
# $2 == Nameserver to do the zone transfer from
|
|
|
|
scan_domain=$1
|
|
scan_ns=$2
|
|
|
|
dig skyfall.gear @$scan_ns AXFR | egrep -v 'SOA|NS|MX|DiG' | grep $scan_domain | awk '{print $1,$5}' > /tmp/.tab-sorcery
|
|
for i in `awk -F. '{print $1}' /tmp/.tab-sorcery`; do alias $i="ssh `grep $i /tmp/.tab-sorcery | awk '{print $2}'`"; done
|
|
\rm -f /tmp/.tab-sorcery
|
|
|
|
return 0
|
|
|