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
-
#splunk_and_online? ⇒ Rex::Proto::Http::Response?
Checks if the site is online and running splunk.
Instance Method Details
#splunk_and_online? ⇒ Rex::Proto::Http::Response?
Checks if the site is online and running splunk
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' => splunk_url_login }) return res if res&.body =~ /Splunk/ return nil rescue ::Rex::ConnectionRefused, ::Rex::HostUnreachable, ::Rex::ConnectionTimeout => e vprint_error("Error connecting to #{splunk_url_login}: #{e}") return nil end |