Showing 15,730 of 21,757 total issues
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 CheckCode::Appears if revision.to_i < 17
Avoid too many return
statements within this method. Open
Open
return CheckCode::Safe
Avoid too many return
statements within this method. Open
Open
return CheckCode::Detected
Avoid too many return
statements within this method. Open
Open
return [true, "Successfully deescalated privileges by removing #{@role_to_add}"]
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 CheckCode::Appears
Avoid too many return
statements within this method. Open
Open
return CheckCode::Unknown("Failed to obtain a valid OpenTSDB version: #{e}")
Avoid too many return
statements within this method. Open
Open
return CheckCode::Detected('Version unknown') unless matches && matches.length > 1
Avoid too many return
statements within this method. Open
Open
return CheckCode::Appears if revision.to_i < 2
Avoid too many return
statements within this method. Open
Open
return xml_doc_or_check_code unless success # in this case xml_doc_or_check_code is a CheckCode so we can return it directly
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 [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 CheckCode::Appears if revision.to_i < 1
Avoid too many return
statements within this method. Open
Open
return CheckCode::Safe
Avoid too many return
statements within this method. Open
Open
return [true]
Avoid too many return
statements within this method. Open
Open
return [false, 'Failed to parse the users.xml file while attempting to deescalate privileges. Manual cleanup is required.']
Avoid too many return
statements within this method. Open
Open
return CheckCode::Appears
Avoid too many return
statements within this method. Open
Open
return Exploit::CheckCode::Unknown
Avoid too many return
statements within this method. Open
Open
return conn