Class: Aquatone::Detectors::Instapage

Inherits:
Aquatone::Detector show all
Defined in:
lib/aquatone/detectors/instapage.rb

Constant Summary collapse

CNAME_VALUES =
%w(pageserve.co secure.pageserve.co).freeze
RESPONSE_FINGERPRINT =
"You've Discovered A Missing Link. Our Apologies!".freeze

Instance Attribute Summary

Attributes inherited from Aquatone::Detector

#host, #resource

Instance Method Summary collapse

Methods inherited from Aquatone::Detector

descendants, #initialize, meta, meta=, #positive?, sluggified_name

Constructor Details

This class inherits a constructor from Aquatone::Detector

Instance Method Details

#runObject



14
15
16
17
18
# File 'lib/aquatone/detectors/instapage.rb', line 14

def run
  return false unless cname_resource?
  return false unless CNAME_VALUES.include?(resource_value)
  get_request("http://#{host}/").body.include?(RESPONSE_FINGERPRINT)
end