syntax error fixed on 70 line

improve check payload was uploaded or not condition using AND condition on line 121
GSoC/Meterpreter_Web_Console
Touhid M Shaikh 2018-03-13 14:15:03 +05:30 committed by GitHub
parent 5e30982184
commit ea3378753b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

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