lib/ryo/plugin/subdomain/find_subdomains.rb in ryo-0.3.0 vs lib/ryo/plugin/subdomain/find_subdomains.rb in ryo-0.3.1
- old
+ new
@@ -9,9 +9,10 @@
end
def parse
table = doc.at_css("table#table-view")
return [] if table.nil?
+
table.css("tr")[1..-1].map do |row|
cols = row.css("td")
domain = cols.first.at_css("a")&.text&.strip
ip = cols[1].at_css("a").nil? ? "N/A" : cols[1].at_css("a").text.strip
{ domain: domain, ip: ip }