Module: Msf::Exploit::Remote::HTTP::Splunk::Version

Included in:
Msf::Exploit::Remote::HTTP::Splunk
Defined in:
lib/msf/core/exploit/remote/http/splunk/version.rb

Overview

Module to get version of splunk app

Instance Method Summary collapse

Instance Method Details

#splunk_version(cookie_string = nil) ⇒ String?

Extracts the Splunk version information using authenticated cookie if available

Parameters:

  • cookie_string (String) (defaults to: nil)

    Valid cookie if available

Returns:

  • (String, nil)

    Splunk version if found, nil otherwise



9
10
11
12
13
14
15
16
17
# File 'lib/msf/core/exploit/remote/http/splunk/version.rb', line 9

def splunk_version(cookie_string = nil)
  version = splunk_version_authenticated(cookie_string) if !cookie_string.nil?
  return version if version

  version = 
  return version if version

  nil
end