Class: WPScan::Finders::InterestingFindings::WPCron

Inherits:
Finder
  • Object
show all
Defined in:
app/finders/interesting_findings/wp_cron.rb

Overview

wp-cron.php finder

Constant Summary

Constants inherited from Finder

Finder::DIRECT_ACCESS

Instance Attribute Summary

Attributes inherited from Finder

#progress_bar, #target

Instance Method Summary collapse

Methods inherited from Finder

#browser, #create_progress_bar, #found_by, #hydra, #initialize, #passive, #titleize

Constructor Details

This class inherits a constructor from WPScan::Finders::Finder

Instance Method Details

#aggressive(_opts = {}) ⇒ InterestingFinding

Returns:

  • (InterestingFinding)


9
10
11
12
13
14
15
# File 'app/finders/interesting_findings/wp_cron.rb', line 9

def aggressive(_opts = {})
  res = Browser.get(wp_cron_url)

  return unless res.code == 200

  Model::WPCron.new(wp_cron_url, confidence: 60, found_by: DIRECT_ACCESS)
end

#wp_cron_urlObject



17
18
19
# File 'app/finders/interesting_findings/wp_cron.rb', line 17

def wp_cron_url
  @wp_cron_url ||= target.url('wp-cron.php')
end