Skip to content

Commit 199f6eb

Browse files
committed
Fix check method
1 parent 1610161 commit 199f6eb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/exploits/unix/webapp/joomla_akeeba_exec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ def initialize(info={})
5858
end
5959

6060
def check
61-
send_request_cgi(
62-
'uri' => normalize_uri(target_uri, 'administrator', 'components', 'com_joomlaupdate', 'restoration.php')
61+
res = send_request_cgi(
62+
'uri' => normalize_uri(target_uri, 'administrator', 'components', 'com_joomlaupdate', 'restoration.php')
6363
)
64-
if res and (res.code == 200)
64+
65+
if res && res.code == 200
6566
return Exploit::CheckCode::Detected
6667
end
6768

0 commit comments

Comments
 (0)