Rubocop fixes

This commit is contained in:
Grant Willcox 2022-07-21 17:01:56 -05:00
parent ebe61b50a7
commit e91beedc4a
No known key found for this signature in database
GPG Key ID: D35E05C0F2B81E83
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class MetasploitModule < Msf::Exploit::Remote
print_status "Checking if #{peer} is vulnerable!"
res = execute_command('id')
return CheckCode::Unknown("Didn't receive a response from the target.") unless res
return CheckCode::Safe("Check URI Path, unexpected HTTP response code: #{res.code}.") unless res.code == 200