Module: Gobuster::Parsers::S3
- Defined in:
- lib/gobuster/parsers/s3.rb
Class Method Summary collapse
-
.parse(io) {|s3bucket| ... } ⇒ Enumerator
Parses
gobuster s3
output.
Class Method Details
.parse(io) {|s3bucket| ... } ⇒ Enumerator
Parses gobuster s3
output.
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/gobuster/parsers/s3.rb', line 21 def self.parse(io) return enum_for(__method__,io) unless block_given? io.each_line do |line| line.chomp! if line.start_with?('http://') && line.end_with?('s3.amazonaws.com/') yield S3Bucket.new(line) end end end |