Module: WpPlugins::Detectable

Included in:
WpPlugins
Defined in:
lib/common/collections/wp_plugins/detectable.rb

Instance Method Summary collapse

Instance Method Details

#passive_detection(wp_target, options = {}) ⇒ WpPlugins


20
21
22
23
24
25
26
27
28
# File 'lib/common/collections/wp_plugins/detectable.rb', line 20

def passive_detection(wp_target, options = {})
  detected = super(wp_target, options)

  detected += from_header(wp_target)
  detected += from_content(wp_target)

  detected.uniq! { |i| i.name }
  detected
end

#vulns_fileString


7
8
9
# File 'lib/common/collections/wp_plugins/detectable.rb', line 7

def vulns_file
  PLUGINS_VULNS_FILE
end