Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/app/finders/interesting_findings/wp_cron.rb
485 views
1
# frozen_string_literal: true
2
3
module WPScan
4
module Finders
5
module InterestingFindings
6
# wp-cron.php finder
7
class WPCron < CMSScanner::Finders::Finder
8
# @return [ InterestingFinding ]
9
def aggressive(_opts = {})
10
res = Browser.get(wp_cron_url)
11
12
return unless res.code == 200
13
14
Model::WPCron.new(wp_cron_url, confidence: 60, found_by: DIRECT_ACCESS)
15
end
16
17
def wp_cron_url
18
@wp_cron_url ||= target.url('wp-cron.php')
19
end
20
end
21
end
22
end
23
end
24
25