syntax error fixed on 70 line
improve check payload was uploaded or not condition using AND condition on line 121GSoC/Meterpreter_Web_Console
parent
5e30982184
commit
ea3378753b
|
@ -67,7 +67,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
return CheckCode::Unknown
|
||||
end
|
||||
|
||||
unless res.code == 200 && res.body.include? ('ClipBucket')
|
||||
unless res.code == 200 && res.body.include?('ClipBucket')
|
||||
vprint_error('Could not find readme')
|
||||
return CheckCode::Safe
|
||||
end
|
||||
|
@ -118,7 +118,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
|
||||
# If the server returns 200 and success yes, we assume we uploaded the malicious
|
||||
# file successfully
|
||||
if not res or res.code != 200 or jsonres['success'] != 'yes'
|
||||
unless res && res.code == 200 && jsonres['success'] == 'yes'
|
||||
fail_with(Failure::None, "#{peer} - File wasn't uploaded, aborting!")
|
||||
end
|
||||
print_good("Looking For Payload .... ")
|
||||
|
@ -147,5 +147,3 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue