!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/   drwxr-xr-x
Free 9.43 GB of 93.48 GB (10.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     emissao_cpf.php (8.01 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include "load_ipanel.php";

$wsdl "http://ws.registrocivil.org.br/listarCartoriosReceitaFederal.cfc?wsdl";
try {
    
$options = array(
        
'soap_version' => SOAP_1_1,
        
'exceptions'   => true,
        
'cache_wsdl'   => WSDL_CACHE_NONE,
    );
    
$soap = new SoapClient($wsdl$options);
    
$xml $soap->listarCartoriosReceitaFederal();
    
$document = new SimpleXMLElement(trim($xml));
    
$data = array('cartorios' => array(),'estados' => array());
    foreach (
$document->cartorios->cartorio as $cartorio) {
        
$data['cartorios'][] = array(
            
'nome'                    => (string) utf8_decode($cartorio->nome),
            
'oficial'                 => (string) utf8_decode($cartorio->oficial),
            
'endereco'                => (string) utf8_decode($cartorio->endereco),
            
'cidade'                  => (string) utf8_decode($cartorio->cidade),
            
'cep'                     => (string) utf8_decode($cartorio->cep),
            
'estado'                  => (string) utf8_decode($cartorio->estado),
            
'telefone'                => (string) utf8_decode($cartorio->telefone),
            
'num_cnj'                => (int) utf8_decode($cartorio->num_cnj),
            
'quantidade_cpf_emitidos' => (int) utf8_decode($cartorio->quantidade_cpf_emitidos),
        );
    }
    
$index 0;
    
$qtd_geral 0;
    foreach (
$document->estados->uf as $uf) {
        
$uf  = (string) utf8_decode($uf);
        
$qtd = (int) utf8_decode($document->estados->quantidade_cpf_emitidos[$index]);
        
$totalCpfs += $qtd;
        
$data['estados'][$uf] = $qtd;
        
$index++;
    }
    
$registros json_encode($data);
} catch (
Exception $e) {
    die(
$e->getMessage());
}
?>
<!DOCTYPE HTML>
<html lang="pt-br">
    <?php include "mod_head.php" ?>
    <body class="homepage">
        <div id="page-wrapper">

      <?php include "mod_login.php" ?>
      <?php include "mod_menu.php" ?>
      <div id="banner-wrapper">
        <div id="banner" class="container">
          <div class="row">
            <h2 class="titulo_page">EMISSÃO DE CPF</h2>
          </div>
        </div>
      </div>

            <div class="wrapper-style1 wrapper-featured">
                <div class="container">
                    <div class="row">
                        <div class="12u">
              <div class="total_cpf">
                <img src="images/logo_cpf.png" alt="" width="300">
                <p>Total de CPFs emitidos em certidões de nascimento no Brasil:</p>
                <p><strong><?=  number_format($totalCpfs0'.''.'); ?></strong></p>
              </div>
              <div class="borda_cpf">
                <div class="cpf_registro_select">
                  <h2>Utilize o campo abaixo para filtrar por estado:</h2>
                  <p>Selecione o estado:
                    <select id="selectUf" onChange="changeUF(this.value, this.options[this.selectedIndex].innerHTML)">
                        <option value=""></option>
                        <option value="AC">Acre</option>
                        <option value="AL">Alagoas</option>
                        <option value="AP">Amapá</option>
                        <option value="AM">Amazonas</option>
                        <option value="BA">Bahia</option>
                        <option value="CE">Ceará</option>
                        <option value="DF">Distrito Federal</option>
                        <option value="ES">Espírito Santo</option>
                        <option value="GO">Goiás</option>
                        <option value="MA">Maranhão</option>
                        <option value="MT">Mato Grosso</option>
                        <option value="MS">Mato Grosso do Sul</option>
                        <option value="MG">Minas Gerais</option>
                        <option value="PA">Pará</option>
                        <option value="PB">Paraíba</option>
                        <option value="PR">Paraná</option>
                        <option value="PE">Pernambuco</option>
                        <option value="PI">Piauí</option>
                        <option value="RJ">Rio de Janeiro</option>
                        <option value="RN">Rio Grande do Norte</option>
                        <option value="RS">Rio Grande do Sul</option>
                        <option value="RO">Rondonia</option>
                        <option value="RR">Roraima</option>
                        <option value="SC">Santa Catarina</option>
                        <option value="SP">São Paulo</option>
                        <option value="SE">Sergipe</option>
                        <option value="TO">Tocantins</option>
                    </select>
                  </p>
                </div>
                <div class="desc_estado_cpf">
                  <p id="ufSelecionada">
                    <b>Paraná (PR)</b> - 417 cartórios - (116636 CPFs emitidos)
                  </p>
                </div>
                <table class="tabela-cpf cell-border table-resp" id="tabela-cpf" border="0" cellspacing="0" cellpadding="0">
                  <thead>
                    <tr>
                      <td class="header" style="text-align: center;"><strong>Nº CNJ</strong></td>
                      <td class="header" style="text-align: center;"><strong>Ofício</strong></td>
                      <td class="header" style="text-align: center;"><strong>Endereço</strong></td>
                      <td class="header" style="text-align: center;"><strong>Telefone</strong></td>
                      <td class="header" style="text-align: center;"><strong>Qtde CPF Emitidos</strong></td>
                    </tr>
                  </thead>
                  <tbody id="tableBodyCPF">
                   <!-- <tr>
                      <td style="text-align: center;">12955-1</td>
                      <td style="text-align: center;">Arapuã</td>
                      <td style="text-align: center;">Av. Presidente Café Filho, n° 1127 Arapuã / PR 86884000</td>
                      <td style="text-align: center;">(43)3444-1192</td>
                      <td style="text-align: center;">35</td>
                    </tr>-->
                  </tbody>
                </table>
              </div>
                      </div>
                    </div>
                </div>
            </div>

            <!-- Banners -->
            <?php include "mod_banners.php" ?>

            <!-- Footer Wrapper -->
            <?php include "mod_footer.php" ?>

        </div>
    </body>
</html>
<?php include "scripts.php" ?>
<script>
    var objects = <?=  $registros ?>;
    
    function changeUF(selectedUf, selectedLabel){
        var html = "";
        var hasCartorio = false;
        var totalCartorios = 0;
        var cpfsEmitidos = 0;
        for(var i = 0; i < objects.cartorios.length; i++) {
            var cartorio = objects.cartorios[i];
            if(selectedUf == cartorio.estado) {
                var cnj = cartorio.num_cnj +'';
                html+= "<tr>";
                html+= "  <td style=\"text-align: center;\">"+("000000" + cnj).slice(-6).substring(0,5).concat('-').concat(cnj.slice(-1))+"</td>";
                html+= "  <td style=\"text-align: left;\">"+ cartorio.nome +"</td>";
                html+= "  <td style=\"text-align: left;\">"+cartorio.endereco + ' <br> ' + cartorio.cidade + ' - ' + cartorio.estado + ' <br> Cep:' + cartorio.cep +"</td>";
                html+= "  <td style=\"text-align: center;\">"+cartorio.telefone+"</td>";
                html+= "  <td style=\"text-align: center;\">"+cartorio.quantidade_cpf_emitidos+"</td>";
                html+= "</tr>";
                totalCartorios++;
                cpfsEmitidos+= cartorio.quantidade_cpf_emitidos;
                hasCartorio = true;
            }
        }
        if(!hasCartorio){
            html += "<tr><td colspan=\"5\" style=\"text-align:center; padding: 5px;\">Não constam cartórios para o estado selecionado!</td></tr>";
        }
        $("#tableBodyCPF").html(html);
        $("#ufSelecionada").html("<b>"+selectedLabel+" ("+selectedUf+")</b> - "+totalCartorios+" cartórios - ("+cpfsEmitidos+" CPFs emitidos)");
    }
    changeUF('PR', 'Paraná');
</script>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.003 ]--