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
- #aggressive(_opts = {}) ⇒ InterestingFinding
-
#url ⇒ String
The url of the fantastico_fileslist.txt file.
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
12 13 14 15 16 17 18 19 |
# File 'app/finders/interesting_findings/fantastico_fileslist.rb', line 12 def aggressive(_opts = {}) res = NS::Browser.get(url) return unless res && res.code == 200 && res.body.length > 0 return unless res.headers && res.headers['Content-Type'] =~ %r{\Atext/plain} NS::FantasticoFileslist.new(url, confidence: 70, found_by: found_by) end |
#url ⇒ String
Returns The url of the fantastico_fileslist.txt file.
7 8 9 |
# File 'app/finders/interesting_findings/fantastico_fileslist.rb', line 7 def url target.url('fantastico_fileslist.txt') end |