Created
November 12, 2015 01:36
-
-
Save jcran/257a126a557298613a81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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