Class: CMSScanner::Finders::InterestingFindings::Headers

Inherits:
Finder
  • Object
show all
Defined in:
app/finders/interesting_findings/headers.rb

Overview

Interesting Headers finder

Constant Summary

Constants inherited from Finder

Finder::DIRECT_ACCESS

Instance Attribute Summary

Attributes inherited from Finder

#progress_bar, #target

Instance Method Summary collapse

Methods inherited from Finder

#aggressive, #browser, #create_progress_bar, #found_by, #hydra, #initialize, #titleize

Constructor Details

This class inherits a constructor from CMSScanner::Finders::Finder

Instance Method Details

#passive(_opts = {}) ⇒ InterestingFinding

Returns:

  • (InterestingFinding)


9
10
11
12
13
# File 'app/finders/interesting_findings/headers.rb', line 9

def passive(_opts = {})
  r = NS::Model::Headers.new(target.homepage_url, confidence: 100, found_by: found_by)

  r.interesting_entries.empty? ? nil : r
end