Class: CMSScanner::Finders::Finder
- Inherits:
-
Object
- Object
- CMSScanner::Finders::Finder
- Defined in:
- lib/cms_scanner/finders/finder.rb
Overview
Finder
Direct Known Subclasses
InterestingFile::FantasticoFileslist, InterestingFile::Headers, InterestingFile::RobotsTxt, InterestingFile::SearchReplaceDB2, InterestingFile::XMLRPC
Constant Summary collapse
- DIRECT_ACCESS =
Constants for common found_by
'Direct Access (aggressive detection)'
Instance Attribute Summary collapse
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
- #aggressive(_opts = {}) ⇒ Object
- #found_by ⇒ Object
-
#initialize(target) ⇒ Finder
constructor
A new instance of Finder.
- #passive(_opts = {}) ⇒ Object
Constructor Details
#initialize(target) ⇒ Finder
Returns a new instance of Finder.
10 11 12 |
# File 'lib/cms_scanner/finders/finder.rb', line 10 def initialize(target) @target = target end |
Instance Attribute Details
#target ⇒ Object
Returns the value of attribute target.
8 9 10 |
# File 'lib/cms_scanner/finders/finder.rb', line 8 def target @target end |
Instance Method Details
#aggressive(_opts = {}) ⇒ Object
19 20 |
# File 'lib/cms_scanner/finders/finder.rb', line 19 def aggressive(_opts = {}) end |
#found_by ⇒ Object
22 23 24 |
# File 'lib/cms_scanner/finders/finder.rb', line 22 def found_by "#{self.class.to_s.demodulize} (#{caller_locations(1, 1)[0].label} detection)" end |
#passive(_opts = {}) ⇒ Object
15 16 |
# File 'lib/cms_scanner/finders/finder.rb', line 15 def passive(_opts = {}) end |