Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk committed Dec 11, 2023
1 parent 78c57c1 commit 374d724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/exploits/unix/http/splunk_xslt_authenticated_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def initialize(info = {})
end

def exploit
cookie_string = authenticate unless cookie_string
cookie_string ||= authenticate
unless cookie_string
fail_with(Failure::NoAccess, 'Authentication failed')
end
Expand Down Expand Up @@ -111,6 +111,7 @@ def check
rescue RuntimeError
cookie_string = nil
end

unless cookie_string
return CheckCode::Detected('The target is Splunk but authentication failed')
end
Expand Down

0 comments on commit 374d724

Please sign in to comment.