Sha256: 5cfd4533e360979fc8c087f94000738a1a12fc407def89c0e88894aeea3fac97

Contents?: true

Size: 842 Bytes

Versions: 4

Compression:

Stored size: 842 Bytes

Contents

# frozen_string_literal: true

module Yawast
  module Scanner
    module Plugins
      module Servers
        class Python
          def self.check_banner(banner)
            Yawast::Shared::Output.log_hash 'vulnerabilities',
                                            'python_version_exposed',
                                            {vulnerable: false, version: nil}

            # don't bother if this doesn't include Python
            return unless banner.include? 'Python/'

            Yawast::Utilities.puts_warn "Python Version: #{banner}"
            puts ''

            Yawast::Shared::Output.log_hash 'vulnerabilities',
                                            'python_version_exposed',
                                            {vulnerable: true, version: banner}
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yawast-0.7.2 lib/scanner/plugins/servers/python.rb
yawast-0.7.1 lib/scanner/plugins/servers/python.rb
yawast-0.7.0 lib/scanner/plugins/servers/python.rb
yawast-0.7.0.beta3 lib/scanner/plugins/servers/python.rb