Showing 16,065 of 22,177 total issues
Avoid too many return
statements within this method. Open
Open
return [true, 'Received expected response while triggering the payload. Please be patient, it may take a few seconds for the payload to execute.']
Avoid too many return
statements within this method. Open
Open
return [false, privs_or_msg] unless success
Avoid too many return
statements within this method. Open
Open
return Exploit::CheckCode::Safe
Avoid too many return
statements within this method. Open
Open
return [false, "Received unexpected response while attempting to trigger the notification. The payload likely wasn't executed."]
Avoid too many return
statements within this method. Open
Open
return deal_with_failure_by_mode(mode, "Received unexpected reply while attempting to #{deescalate ? 'deescalate' : 'escalate'} privileges", 'unexpected_reply')
Avoid too many return
statements within this method. Open
Open
return
Avoid too many return
statements within this method. Open
Open
return deal_with_failure_by_mode(mode, message, 'unexpected_reply')
Avoid too many return
statements within this method. Open
Open
return
Avoid too many return
statements within this method. Open
Open
return privs_or_check_code unless success
Avoid too many return
statements within this method. Open
Open
return CheckCode::Appears(
"Netsweeper #{version} is a vulnerable version."
)
Avoid too many return
statements within this method. Open
Open
return CheckCode::Safe("User #{username} does not have the required privileges for exploitation to work.")
Avoid too many return
statements within this method. Open
Open
return
Avoid too many return
statements within this method. Open
Open
return [false, message] unless success # this is only used for cleanup. for exploit this cannot happen
Avoid too many return
statements within this method. Open
Open
return CheckCode::Unknown("Failed to obtain a valid OpenNMS version: #{e}")
Avoid too many return
statements within this method. Open
Open
return CheckCode::Appears if revision.to_i < 3
Avoid too many return
statements within this method. Open
Open
return CheckCode::Detected
Avoid too many return
statements within this method. Open
Open
return nil
Avoid too many return
statements within this method. Open
Open
return conn
Avoid too many return
statements within this method. Open
Open
return CheckCode::Unknown("#{peer} - Could not connect to web service")
Avoid too many return
statements within this method. Open
Open
return Exploit::CheckCode::Vulnerable("Successfully executed the 'id' command.") unless result.nil? || result[/uid=.+ gid=.+ groups=.+/].nil?