Class: WPScan::Finders::WpVersion::UniqueFingerprinting

Inherits:
CMSScanner::Finders::Finder
  • Object
show all
Includes:
CMSScanner::Finders::Finder::Fingerprinter
Defined in:
app/finders/wp_version/unique_fingerprinting.rb

Overview

Unique Fingerprinting Version Finder

Instance Method Summary collapse

Instance Method Details

#aggressive(opts = {}) ⇒ WpVersion

Returns:



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'app/finders/wp_version/unique_fingerprinting.rb', line 11

def aggressive(opts = {})
  fingerprint(DB::Fingerprints.wp_unique_fingerprints, opts) do |version_number, url, md5sum|
    hydra.abort
    progress_bar.finish

    return Model::WpVersion.new(
      version_number,
      found_by: 'Unique Fingerprinting (Aggressive Detection)',
      confidence: 100,
      interesting_entries: ["#{url} md5sum is #{md5sum}"]
    )
  end
  nil
end

#create_progress_bar(opts = {}) ⇒ Object



26
27
28
# File 'app/finders/wp_version/unique_fingerprinting.rb', line 26

def create_progress_bar(opts = {})
  super(opts.merge(title: 'Fingerprinting the version -'))
end