Class: ServiceNow

Inherits:
Fingerprinter::Technologies show all
Defined in:
lib/fingerprinter/technologies/softwares/servicenow.rb

Overview

ServiceNow Detection

Constant Summary collapse

HEADERS_REGEX =
{
  'server' => /ServiceNow/,
  'set-cookie' => /glide_user/
}.freeze
BODY_CONTENT_REGEX =
[
  /About ServiceNow/
].freeze

Instance Attribute Summary

Attributes inherited from Fingerprinter::Technologies

#http_client, #results

Class Method Summary collapse

Methods inherited from Fingerprinter::Technologies

#initialize, kb, meta_detection, response_headers_check, #run, title_detection, whole_body_check

Constructor Details

This class inherits a constructor from Fingerprinter::Technologies

Class Method Details

.run(data) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/fingerprinter/technologies/softwares/servicenow.rb', line 14

def self.run(data)
  return unless response_headers_check(data[:response], HEADERS_REGEX) || 
                  title_detection(data[:doc], 'ServiceNow') || 
                  whole_body_check(data[:response], BODY_CONTENT_REGEX)

  'ServiceNow'
end