Class: Yawast::Scanner::Php

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

Class Method Summary collapse

Class Method Details

.check_banner(banner) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/scanner/php.rb', line 4

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

  modules = banner.split(' ')

  modules.each do |mod|
    if mod.include? 'PHP/'
      Yawast::Utilities.puts_warn "PHP Version: #{mod}"
      puts ''
    end
  end
end