lib/wmap/dns_bruter.rb
# Parallel DNS brute-forcer operating on the trusted domains - by utilizing fork manager to spawn multiple child processes on multiple sub_domain domains from the local hosts table simultaneously
Parallel DNS brute-forcer operating on the trusted domains - by utilizing fork manager to spawn multiple child processes on multiple sub_domain domains from the local hosts table simultaneously
Parallel DNS brute - forcer operating on the trusted domains - by utilizing fork manager to spawn multiple child processes on multiple sub_domain domains from the local hosts table simultaneously
def dns_brute_domains(targets,num=@max_parallel)
		puts "Start the parallel brute-forcing with multiple child processes: #{num}"
		begin
			hosts=Array.new
			puts "Brute-forcing the following domain: #{targets}" if @verbose
			targets.each_slice(1000).to_a.map do |slice|
				hosts_new=dns_brute_workers(slice,num)
				hosts << hosts_new
			end
			puts "Parallel bruting result: #{hosts.flatten}" if @verbose
			return hosts.flatten
		rescue Exception => ee
			puts "Exception on method #{__method__}: #{ee}" if @verbose
			return hosts.flatten
		end
	end
def dns_brute_domains ( targets , num = @max_parallel ) puts "Start the parallel brute-forcing with multiple child processes: #{num}" begin hosts = Array . new puts "Brute-forcing the following domain: #{targets}" if @verbose targets . each_slice ( 1000 ) . to_a . map do | slice | hosts_new = dns_brute_workers ( slice , num ) hosts << hosts_new end puts "Parallel bruting result: #{hosts.flatten}" if @verbose return hosts . flatten rescue Exception => ee puts "Exception on method #{__method__}: #{ee}" if @verbose return hosts . flatten end end
Parallel DNS brute-forcer operating on the trusted domains - by utilizing fork manager to spawn multiple child processes on multiple sub_domain domains from the local hosts table simultaneously
Parallel DNS brute - forcer operating on the trusted domains - by utilizing fork manager to spawn multiple child processes on multiple sub_domain domains from the local hosts table simultaneously
# Sliced to chunks of 1,000 domains for each process time, to avoid potential overflow of large array ?
targets
<not_specific>
num
<not_specific>