wpscanteam/wpscan

View on GitHub
lib/wpscan/vulnerable.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module WPScan
  # Module to include in vulnerable WP item such as WpVersion.
  # the vulnerabilities method should be implemented
  module Vulnerable
    # @return [ Boolean ]
    def vulnerable?
      !vulnerabilities.empty?
    end
  end
end