lib/wmap/dns_bruter.rb
# Parallel DNS brute-forcer operating on target domain list - by utilizing fork manager to spawn multiple child processes on multiple domains simultaneously
Parallel DNS brute-forcer operating on target domain list - by utilizing fork manager to spawn multiple child processes on multiple domains simultaneously
Parallel DNS brute - forcer operating on target domain list - by utilizing fork manager to spawn multiple child processes on multiple domains simultaneously
def dns_brute_workers(list,num=@max_parallel)
		puts "Start the parallel engine one the domain list: #{list} \nMaximum brute-forcing session: #{num} "
		begin
			targets=list.uniq.keep_if { |x| is_fqdn?(x) }
			results=Hash.new
			Parallel.map(targets, :in_processes => num) { |target|
				dns_brute_worker(target)
			}.each do |process|
				if process.nil?
					next
				elsif process.empty?
				else
					results.merge!(process)
				end
			end
			puts "Parallel DNS brute-force results: #{results}" if @verbose
			@discovered_hosts_from_dns_bruter.merge!(results)
			return results
		rescue Exception => ee
			puts "Exception on method #{__method__}: #{ee}" if @verbose
		end
	end
def dns_brute_workers ( list , num = @max_parallel ) puts "Start the parallel engine one the domain list: #{list} \nMaximum brute-forcing session: #{num} " begin targets = list . uniq . keep_if { | x | is_fqdn? ( x ) } results = Hash . new Parallel . map ( targets , :in_processes => num ) { | target | dns_brute_worker ( target ) } . each do | process | if process . nil? next elsif process . empty? else results . merge! ( process ) end end puts "Parallel DNS brute-force results: #{results}" if @verbose @discovered_hosts_from_dns_bruter . merge! ( results ) return results rescue Exception => ee puts "Exception on method #{__method__}: #{ee}" if @verbose end end
Parallel DNS brute-forcer operating on target domain list - by utilizing fork manager to spawn multiple child processes on multiple domains simultaneously
Parallel DNS brute - forcer operating on target domain list - by utilizing fork manager to spawn multiple child processes on multiple domains simultaneously
#do nothing in case of thrown an empty array #domain=get_domain_root(process.first).downcase
list
<not_specific>
num
<not_specific>