class Aquatone::Detectors::Uservoice
Constants
- CNAME_VALUE
- RESPONSE_FINGERPRINTS
Public Instance Methods
run()
click to toggle source
# File lib/aquatone/detectors/uservoice.rb, line 17 def run return false unless cname_resource? if resource_value.end_with?(CNAME_VALUE) response = get_request("http://#{host}/") RESPONSE_FINGERPRINTS.each do |fingerprint| return true if response.body.include?(fingerprint) end end false end