lib/wmap/dns_bruter.rb
# Main worker to perform the brute-forcing on an Internet domain
Main worker to perform the brute-forcing on an Internet domain
Main worker to perform the brute - forcing on an Internet domain
def dns_brute_worker(host)
		puts "Start DNS brute forcer on: #{host}"
		results=Hash.new
		domain=get_domain_root(host)
		begin
			host=host.strip.downcase
			raise "Invalid internet host format: #{host}" unless is_fqdn?(host)
			domain=get_domain_root(host)
			if zone_transferable?(domain)
				hosts=zone_transfer(domain)
			else
				hosts=brute_force_dns(host)
			end
			results[domain]=hosts
			puts "Finish discovery on #{host}: #{results}"
			return results
		rescue Exception=>ee
			puts "Exception on method #{__method__}: #{ee}" if @verbose
			return results
		end
	end
def dns_brute_worker ( host ) puts "Start DNS brute forcer on: #{host}" results = Hash . new domain = get_domain_root ( host ) begin host = host . strip . downcase raise "Invalid internet host format: #{host}" unless is_fqdn? ( host ) domain = get_domain_root ( host ) if zone_transferable? ( domain ) hosts = zone_transfer ( domain ) else hosts = brute_force_dns ( host ) end results [ domain ] = hosts puts "Finish discovery on #{host}: #{results}" return results rescue Exception => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return results end end
Main worker to perform the brute-forcing on an Internet domain
Main worker to perform the brute - forcing on an Internet domain
# If we can do the zone transfer, then the brute-force process can be skipped.
host
<not_specific>