'Analyze results of the _send_mutant method.'

def _analyze_result(self, rfi_data, mutant, response):

    if (rfi_data.rfi_result in response):
        desc = ('A    remote    file    inclusion    vulnerability    that    allows    remote    code    execution    was    found    at:    %s' % mutant.found_at())
        v = Vuln.from_mutant('Remote    code    execution', desc, severity.HIGH, response.id, self.get_name(), mutant)
        self._vulns.append(v)
    elif ((rfi_data.rfi_result_part_1 in response) and (rfi_data.rfi_result_part_2 in response)):
        desc = ('A    remote    file    inclusion    vulnerability    without    code    execution    was    found    at:    %s' % mutant.found_at())
        v = Vuln.from_mutant('Remote    file    inclusion', desc, severity.MEDIUM, response.id, self.get_name(), mutant)
        self._vulns.append(v)
    else:
        for error in self.RFI_ERRORS:
            if ((error in response) and (not (error in mutant.get_original_response_body()))):
                desc = ('A    potential    remote    file    inclusion    vulnerability    was    identified    by    the    means    of    application    error    messages    at:    %s' % mutant.found_at())
                v = Vuln.from_mutant('Potential    remote    file    inclusion', desc, severity.LOW, response.id, self.get_name(), mutant)
                v.add_to_highlight(error)
                self._vulns.append(v)
                break
