Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/app/finders/interesting_findings/debug_log.rb
485 views
1
# frozen_string_literal: true
2
3
module WPScan
4
module Finders
5
module InterestingFindings
6
# debug.log finder
7
class DebugLog < CMSScanner::Finders::Finder
8
# @return [ InterestingFinding ]
9
def aggressive(_opts = {})
10
path = 'wp-content/debug.log'
11
12
return unless target.debug_log?(path)
13
14
Model::DebugLog.new(target.url(path), confidence: 100, found_by: DIRECT_ACCESS)
15
end
16
end
17
end
18
end
19
end
20
21