Skip to content

Commit

Permalink
Land #19152, Fix apache_normalize_path_rce check
Browse files Browse the repository at this point in the history
Fix apache_normalize_path_rce check method
  • Loading branch information
smcintyre-r7 committed May 1, 2024
2 parents 2dce738 + 5e1dc05 commit 1bf721b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/exploits/multi/http/apache_normalize_path_rce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def initialize(info = {})
'Arch' => [ARCH_CMD, ARCH_X64, ARCH_X86],
'DefaultOptions' => {
'CheckModule' => 'auxiliary/scanner/http/apache_normalize_path',
'Action' => 'CHECK_RCE',
'RPORT' => 443,
'SSL' => true
},
Expand Down Expand Up @@ -88,6 +87,12 @@ def initialize(info = {})
])
end

def check_options
{
'Action' => 'CHECK_RCE'
}
end

def cmd_unix_generic?
datastore['PAYLOAD'] == 'cmd/unix/generic'
end
Expand Down

0 comments on commit 1bf721b

Please sign in to comment.