Module: Gobuster::Parsers::DNS
- Defined in:
- lib/gobuster/parsers/dns.rb
Class Method Summary collapse
-
.parse(io) {|hostname| ... } ⇒ Enumerator
Parses
gobuster dns
output.
Class Method Details
.parse(io) {|hostname| ... } ⇒ Enumerator
Parses gobuster dns
output.
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/gobuster/parsers/dns.rb', line 21 def self.parse(io) return enum_for(__method__,io) unless block_given? io.each_line do |line| if line.start_with?('Found: ') line.chomp! line.sub!('Found: ','') yield Hostname.new(line) end end end |