Class: CloudbleedChecker::Firefox

Inherits:
Browser
  • Object
show all
Defined in:
lib/cloudbleed_checker/firefox.rb

Instance Method Summary collapse

Methods inherited from Browser

extract_domains, #extract_host, #extract_hosts, #history_db_glob, #history_db_path, #initialize, #with_database, #with_databases

Constructor Details

This class inherits a constructor from CloudbleedChecker::Browser

Instance Method Details

#extract_domainsObject



7
8
9
10
11
12
13
14
15
# File 'lib/cloudbleed_checker/firefox.rb', line 7

def extract_domains
  with_databases do |db|
    ds = db[:moz_places].
      select('DISTINCT(url), last_visit_date').
      where('last_visit_date  >= ?', CloudbleedChecker::INITIAL_VULNERABILITY_RELEASED.to_i).
      order(:last_visit_date)
    extract_hosts(ds, :url)
  end
end