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

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

Overview

wp-cron.php finder

Instance Method Summary collapse

Instance Method Details

#aggressive(_opts = {}) ⇒ InterestingFinding

Returns:

  • (InterestingFinding)


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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,
    references: {
      url: [
        'https://www.iplocation.net/defend-wordpress-from-ddos',
        'https://github.com/wpscanteam/wpscan/issues/1299'
      ]
    }
  )
end

#wp_cron_urlObject



27
28
29
# File 'app/finders/interesting_findings/wp_cron.rb', line 27

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