Class: CMSScanner::Finders::InterestingFindings::FantasticoFileslist
- Inherits:
-
Finder
- Object
- Finder
- CMSScanner::Finders::InterestingFindings::FantasticoFileslist
- Defined in:
- app/finders/interesting_findings/fantastico_fileslist.rb
Overview
FantasticoFileslist finder
Constant Summary
Constants inherited from Finder
Instance Attribute Summary
Attributes inherited from Finder
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 CMSScanner::Finders::Finder
Instance Method Details
#aggressive(_opts = {}) ⇒ InterestingFinding
9 10 11 12 13 14 15 16 17 |
# File 'app/finders/interesting_findings/fantastico_fileslist.rb', line 9 def aggressive(_opts = {}) path = 'fantastico_fileslist.txt' res = target.head_and_get(path) return if res.body.strip.empty? return unless res.headers && res.headers['Content-Type']&.start_with?('text/plain') NS::Model::FantasticoFileslist.new(target.url(path), confidence: 70, found_by: found_by) end |