lib/scanner/generic.rb in yawast-0.7.1 vs lib/scanner/generic.rb in yawast-0.7.2

- old
+ new

@@ -56,11 +56,11 @@ end puts '' if server != '' Yawast::Scanner::Plugins::Servers::Apache.check_banner(server) - Yawast::Scanner::Plugins::Servers::Generic.check_banner_php(server) + Yawast::Scanner::Plugins::Applications::Framework::PHP.check_banner(server) Yawast::Scanner::Plugins::Servers::Iis.check_banner(server) Yawast::Scanner::Plugins::Servers::Nginx.check_banner(server) Yawast::Scanner::Plugins::Servers::Python.check_banner(server) if server == 'cloudflare' @@ -69,10 +69,13 @@ end Yawast::Shared::Output.log_value 'server', server end - Yawast::Utilities.puts_warn "X-Powered-By Header Present: #{powered_by}" if powered_by != '' + if powered_by != '' + Yawast::Utilities.puts_warn "X-Powered-By Header Present: #{powered_by}" + Yawast::Scanner::Plugins::Applications::Framework::PHP.check_powered_by(powered_by) + end Yawast::Utilities.puts_warn 'X-XSS-Protection Disabled Header Present' if xss_protection == '0' Yawast::Utilities.puts_info "X-Pingback Header Present: #{pingback}" unless pingback == ''