Skip to content

Commit

Permalink
Add an asterisk to the regex to include wildcard subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
jolle committed Jun 24, 2017
1 parent 2e6a4da commit 54cd2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aquatone/collectors/crtsh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Crtsh < Aquatone::Collector
def run
response = get_request("https://crt.sh/?dNSName=%25.#{url_escape(domain.name)}")

response.body.to_enum(:scan, /<TD>([a-zA-Z0-9_.-]+\.#{domain.name})<\/TD>/).map do |column|
response.body.to_enum(:scan, /<TD>([a-zA-Z0-9\*_.-]+\.#{domain.name})<\/TD>/).map do |column|
add_host(column[0].gsub("*.", ""))
end
end
Expand Down

0 comments on commit 54cd2cc

Please sign in to comment.