Sha256: 70d3dc9381b5fbfc720d9abb9b9471e058ffee06089d5dd81104b013512a5cc8
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
# frozen_string_literal: true module Ryo module Plugin module Subdomain class FindSubDomains < Base def endpoint "https://findsubdomains.com/subdomains-of" 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 } end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ryo-0.3.0 | lib/ryo/plugin/subdomain/find_subdomains.rb |
ryo-0.2.0 | lib/ryo/plugin/subdomain/find_subdomains.rb |
ryo-0.1.0 | lib/ryo/plugin/subdomain/find_subdomains.rb |