Skip to content

Instantly share code, notes, and snippets.

@jcran
Created November 12, 2015 01:36
Show Gist options
  • Save jcran/257a126a557298613a81 to your computer and use it in GitHub Desktop.
Save jcran/257a126a557298613a81 to your computer and use it in GitHub Desktop.
module Intrigue
module Scanner
class RecursiveDnsBrute < Intrigue::Scanner::Base
private
### Main "workflow" function
#
def _recurse(entity, depth)
if depth <= 0 # Check for bottom of recursion
@scan_log.log "Returning, depth @ #{depth}"
return
end
if entity.type == "DnsRecord"
### DNS Subdomain Bruteforce
_start_task_and_recurse "dns_brute_sub",entity,depth,[{"name" => "use_file", "value" => "true"}]
else
@scan_log.log "SKIP Unhandled entity type: #{entity.type}##{entity.attributes["name"]}"
return
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment