Module: Msf::Exploit::Remote::HTTP::Splunk::Base

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

Overview

Splunk base module

Instance Method Summary collapse

Instance Method Details

#splunk_and_online?Rex::Proto::Http::Response?

Checks if the site is online and running splunk

Returns:



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

def splunk_and_online?
  res = send_request_cgi({
    'uri' => 
  })

  return res if res&.body =~ /Splunk/

  return nil
rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout => e
  vprint_error("Error connecting to #{}: #{e}")
  return nil
end