From 5e1dc05f09b2046400833138f5e0154232520515 Mon Sep 17 00:00:00 2001 From: adfoster-r7 Date: Wed, 1 May 2024 20:01:38 +0100 Subject: [PATCH] Fix apache_normalize_path_rce check method --- modules/exploits/multi/http/apache_normalize_path_rce.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/apache_normalize_path_rce.rb b/modules/exploits/multi/http/apache_normalize_path_rce.rb index 4749e510c5a8..b219e492135a 100644 --- a/modules/exploits/multi/http/apache_normalize_path_rce.rb +++ b/modules/exploits/multi/http/apache_normalize_path_rce.rb @@ -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 }, @@ -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