Class: Yawast::Scanner::Nginx

Inherits:
Object
  • Object
show all
Defined in:
lib/scanner/nginx.rb

Class Method Summary collapse

Class Method Details

.check_banner(banner) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/scanner/nginx.rb', line 4

def self.check_banner(banner)
  #don't bother if this doesn't include nginx
  return if !banner.include? 'nginx/'

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