Sha256: d2c0b5dae9ed223f05c4b7ad8d9739afab24d90f5d1d33c31db66f59fb8ce22a

Contents?: true

Size: 320 Bytes

Versions: 34

Compression:

Stored size: 320 Bytes

Contents

module Yawast
  module Scanner
    class Cms
      def self.get_generator(body)
        regex = /<meta name="generator[^>]+content\s*=\s*['"]([^'"]+)['"][^>]*>/
        match = body.match regex

        if match
          Yawast::Utilities.puts_info "Meta Generator: #{match[1]}"
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
yawast-0.7.0.beta1 lib/scanner/cms.rb
yawast-0.6.0 lib/scanner/cms.rb
yawast-0.6.0.beta6 lib/scanner/cms.rb
yawast-0.6.0.beta5 lib/scanner/cms.rb
yawast-0.6.0.beta4 lib/scanner/cms.rb
yawast-0.6.0.beta3 lib/scanner/cms.rb
yawast-0.6.0.beta2 lib/scanner/cms.rb
yawast-0.6.0.beta1 lib/scanner/cms.rb
yawast-0.5.2 lib/scanner/cms.rb
yawast-0.5.1 lib/scanner/cms.rb
yawast-0.5.1.beta1 lib/scanner/cms.rb
yawast-0.5.0 lib/scanner/cms.rb
yawast-0.5.0.beta8 lib/scanner/cms.rb
yawast-0.5.0.beta7 lib/scanner/cms.rb
yawast-0.5.0.beta6 lib/scanner/cms.rb
yawast-0.5.0.beta5 lib/scanner/cms.rb
yawast-0.5.0.beta4 lib/scanner/cms.rb
yawast-0.5.0.beta3 lib/scanner/cms.rb
yawast-0.5.0.beta2 lib/scanner/cms.rb
yawast-0.5.0.beta1 lib/scanner/cms.rb