'Check for RFI using a local web server
:param freq: A FuzzableRequest object
:return: None, everything is saved to the kb'

def _local_test_inclusion(self, freq, orig_response):

    if (not self._listen_address):
        return
    is_listen_priv = is_private_site(self._listen_address)
    is_target_priv = is_private_site(freq.get_url().get_domain())
    if ((is_listen_priv and is_target_priv) or (not (is_listen_priv or is_target_priv))):
        msg = ('RFI    using    local    web    server    for    URL:    %s' % freq.get_url())
        om.out.debug(msg)
        try:
            (php_jsp_code, rfi_data) = self._create_file()
            RFIWebHandler.RESPONSE_BODY = php_jsp_code
            webroot = '.'
            webserver.start_webserver(self._listen_address, self._listen_port, webroot, RFIWebHandler)
            self._test_inclusion(freq, rfi_data, orig_response)
        except Exception as e:
            msg = 'An    error    occurred    while    running    local    web    server    for    the    remote    file    inclusion    (rfi)    plugin:    "%s"'
            om.out.error((msg % e))
