Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
if (isset($_GET["\143\x70\146\x5f\143\x6e\160\x6a"])) { $cpf_cnpj = $_GET["\143\x70\146..
Decoded Output download
<?
if (isset($_GET["cpf_cnpj"])) { $cpf_cnpj = $_GET["cpf_cnpj"]; $contar = strlen($cpf_cnpj); $ch = curl_init(); if ($contar == 11) { curl_setopt_array($ch, array(CURLOPT_URL => "https://f5search.com.br/search/all?access-key=1407d544-8bfe-4249-8593-067572788a6d&cpf={$cpf_cnpj}", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true)); $consulta_cpf = curl_exec($ch); if (strpos($consulta_cpf, "data")) { $consulta_json = json_decode($consulta_cpf); $nome = ucwords(strtolower($consulta_json->data->serasa->CONTATOS->NOME)); $nomeMae = ucwords(strtolower($consulta_json->data->serasa->CONTATOS->NOME_MAE)); $TituloEleitor = strlen($consulta_json->data->serasa->CONTATOS->TITULO_ELEITOR) > 0 ? $consulta_json->data->serasa->CONTATOS->TITULO_ELEITOR : "N\xc3\243o encontrado"; $email = $consulta_json->data->serasa->EMAIL != null ? strtolower($consulta_json->data->serasa->EMAIL[0]->EMAIL) : "N\303\xa3o encontrado"; $nasc = $consulta_json->data->serasa->CONTATOS->NASC; $nasc = date("d/m/Y", strtotime(substr($nasc, 0, 10))); $renda = $consulta_json->data->serasa->CONTATOS->RENDA; print_r("<p><span>CPF:</span> {$cpf_cnpj}</p><p><span>Data de Nascimento:</span> {$nasc}</p><p><span>Nome:</span> {$nome}</p><p><span>Nome da M\303\xa3e:</span> {$nomeMae}</p><p><span>T\xc3\255tulo do Eleitor:</span> {$TituloEleitor}</p><p><span>Renda:</span> R${$renda}</p><p><span>E-mail:</span> {$email}</p>"); } } elseif ($contar == 14) { $ch = curl_init(); curl_setopt_array($ch, array(CURLOPT_URL => "https://lk-alexandria.fly.dev/branches?cnpj=eq.{$cpf_cnpj}&select=cnpj,razao_social,nome_fantasia,mf,capital_social,cod_natureza_juridica,descricao_natureza_juridica,cod_situacao_cadastral,cod_porte_empresa,cnae_fiscal,cnaes_secundarios,data_inicio_atividade,desc_tipo_logradouro,logradouro,numero,bairro,uf,telefone1,ddd1,descricao_municipio,cep,correio_eletronico,opcao_pelo_mei,opcao_pelo_simples,data_situacao_cadastral,branches_preview,qsa_preview&limit=1", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true)); $consulta_cnpj = curl_exec($ch); $json_cnpj = json_decode($consulta_cnpj); $razao_social = ucwords(strtolower($json_cnpj[0]->razao_social)); $email_socio = $json_cnpj[0]->correio_eletronico != null ? strtolower($json_cnpj[0]->correio_eletronico) : "N\303\xa3o encontrado"; $socios_contar = $json_cnpj[0]->qsa_preview; $contar = count($socios_contar); for ($i = 0; $i < $contar; $i++) { $socios_contar = $json_cnpj[0]->qsa_preview[$i]->nome; $nomes_socios[] = ucwords(strtolower($socios_contar)); } $nomes = implode("; ", $nomes_socios); print_r("
<p><span>CNPJ:</span> {$cpf_cnpj}</p>
<p><span>Raz\xc3\243o Social:</span> {$razao_social}</p>\xa <p><span>E-mail S\xc3\263cio:</span> {$email_socio}</p>\xa <p><span>S\xc3\xb3cios:</span> {$nomes}</p>
"); } else { echo "Informe um valor v\303\xa1lido, por favor."; } } else { echo "=( TRISTE ESTOU!"; } ?>
Did this file decode correctly?
Original Code
if (isset($_GET["\143\x70\146\x5f\143\x6e\160\x6a"])) { $cpf_cnpj = $_GET["\143\x70\146\137\143\156\x70\152"]; $contar = strlen($cpf_cnpj); $ch = curl_init(); if ($contar == 11) { curl_setopt_array($ch, array(CURLOPT_URL => "\150\x74\164\x70\163\x3a\x2f\57\146\x35\163\145\x61\162\x63\150\x2e\x63\x6f\x6d\x2e\x62\162\x2f\163\145\141\162\x63\x68\57\x61\154\154\77\141\143\143\145\163\163\55\x6b\x65\171\x3d\61\64\60\x37\x64\65\x34\x34\55\x38\x62\146\145\x2d\64\x32\64\71\55\x38\x35\x39\63\55\x30\66\67\65\67\x32\x37\x38\70\x61\x36\144\x26\x63\160\146\x3d{$cpf_cnpj}", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true)); $consulta_cpf = curl_exec($ch); if (strpos($consulta_cpf, "\x64\x61\x74\141")) { $consulta_json = json_decode($consulta_cpf); $nome = ucwords(strtolower($consulta_json->data->serasa->CONTATOS->NOME)); $nomeMae = ucwords(strtolower($consulta_json->data->serasa->CONTATOS->NOME_MAE)); $TituloEleitor = strlen($consulta_json->data->serasa->CONTATOS->TITULO_ELEITOR) > 0 ? $consulta_json->data->serasa->CONTATOS->TITULO_ELEITOR : "\x4e\xc3\243\157\x20\x65\156\143\x6f\156\x74\x72\x61\x64\157"; $email = $consulta_json->data->serasa->EMAIL != null ? strtolower($consulta_json->data->serasa->EMAIL[0]->EMAIL) : "\x4e\303\xa3\157\40\x65\x6e\x63\x6f\156\164\162\x61\144\x6f"; $nasc = $consulta_json->data->serasa->CONTATOS->NASC; $nasc = date("\x64\57\155\57\131", strtotime(substr($nasc, 0, 10))); $renda = $consulta_json->data->serasa->CONTATOS->RENDA; print_r("\x3c\160\x3e\x3c\163\x70\x61\x6e\76\103\x50\x46\72\x3c\57\x73\160\141\156\76\40{$cpf_cnpj}\x3c\57\x70\76\74\x70\76\x3c\163\160\x61\156\x3e\104\141\164\141\x20\x64\x65\x20\x4e\x61\163\x63\x69\155\x65\x6e\x74\157\x3a\74\x2f\x73\x70\141\156\x3e\x20{$nasc}\74\57\160\76\x3c\x70\x3e\74\163\x70\x61\156\x3e\x4e\157\x6d\145\x3a\74\x2f\x73\x70\141\x6e\x3e\x20{$nome}\x3c\57\160\x3e\74\160\76\x3c\163\160\141\x6e\x3e\116\157\x6d\x65\40\144\141\40\x4d\303\xa3\x65\72\x3c\57\x73\160\141\x6e\x3e\40{$nomeMae}\74\x2f\x70\x3e\x3c\x70\x3e\x3c\x73\x70\141\x6e\76\124\xc3\255\x74\x75\154\x6f\x20\x64\x6f\40\x45\x6c\x65\151\x74\x6f\x72\x3a\x3c\57\x73\160\141\156\x3e\40{$TituloEleitor}\74\x2f\x70\76\x3c\160\x3e\74\x73\160\x61\156\x3e\x52\x65\x6e\144\x61\x3a\x3c\57\x73\x70\x61\x6e\x3e\x20\122\44{$renda}\74\x2f\x70\76\x3c\x70\76\x3c\x73\x70\141\x6e\76\105\55\155\141\x69\x6c\72\74\57\x73\x70\141\156\x3e\40{$email}\x3c\x2f\160\x3e"); } } elseif ($contar == 14) { $ch = curl_init(); curl_setopt_array($ch, array(CURLOPT_URL => "\x68\164\x74\x70\163\x3a\57\x2f\x6c\x6b\55\x61\154\x65\x78\141\156\144\162\151\141\x2e\146\x6c\171\56\144\145\x76\x2f\x62\162\x61\x6e\x63\150\145\x73\x3f\x63\156\160\x6a\x3d\145\x71\x2e{$cpf_cnpj}\x26\163\145\154\145\x63\x74\75\x63\156\160\x6a\54\x72\x61\172\141\157\x5f\x73\157\x63\151\x61\x6c\54\x6e\157\155\145\137\146\141\156\164\x61\x73\x69\141\x2c\x6d\146\x2c\143\x61\x70\x69\164\x61\154\x5f\x73\x6f\143\x69\x61\x6c\54\143\157\144\137\156\x61\164\165\x72\x65\172\141\x5f\x6a\x75\x72\x69\x64\151\x63\141\x2c\144\145\x73\143\x72\151\143\141\x6f\137\x6e\141\x74\165\162\x65\x7a\x61\x5f\x6a\165\162\x69\x64\151\x63\141\x2c\143\x6f\x64\x5f\163\151\x74\x75\141\x63\141\x6f\137\143\141\x64\141\163\x74\162\x61\154\x2c\143\157\144\137\160\157\x72\x74\x65\137\145\x6d\160\x72\145\163\141\x2c\143\156\141\x65\x5f\146\x69\163\x63\141\154\54\x63\156\141\x65\x73\137\163\145\143\x75\x6e\144\141\x72\151\x6f\163\54\144\141\x74\x61\x5f\x69\156\151\143\151\157\137\141\164\x69\x76\x69\x64\141\x64\x65\54\144\x65\163\x63\137\164\x69\160\157\137\x6c\x6f\x67\x72\x61\x64\x6f\x75\x72\157\x2c\154\157\147\162\x61\144\x6f\x75\x72\x6f\54\x6e\x75\x6d\x65\162\x6f\x2c\x62\x61\151\162\162\157\x2c\x75\146\x2c\164\x65\x6c\145\146\x6f\x6e\x65\61\54\x64\144\144\x31\x2c\144\145\163\x63\x72\151\143\x61\157\x5f\155\165\x6e\x69\x63\151\x70\151\x6f\x2c\143\x65\160\54\143\x6f\162\162\145\x69\x6f\x5f\x65\x6c\145\x74\x72\157\x6e\151\143\157\54\x6f\160\x63\x61\157\x5f\x70\145\x6c\157\x5f\155\145\x69\x2c\x6f\160\143\141\157\137\160\145\x6c\157\137\x73\151\x6d\160\154\145\x73\54\x64\x61\x74\x61\137\x73\x69\x74\x75\141\x63\x61\x6f\x5f\143\x61\x64\x61\x73\x74\x72\x61\x6c\54\142\x72\141\x6e\x63\150\x65\163\x5f\160\x72\145\x76\151\145\167\x2c\161\163\x61\x5f\x70\x72\x65\166\x69\x65\x77\x26\x6c\151\155\151\164\75\x31", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true)); $consulta_cnpj = curl_exec($ch); $json_cnpj = json_decode($consulta_cnpj); $razao_social = ucwords(strtolower($json_cnpj[0]->razao_social)); $email_socio = $json_cnpj[0]->correio_eletronico != null ? strtolower($json_cnpj[0]->correio_eletronico) : "\116\303\xa3\157\40\145\x6e\143\157\x6e\x74\x72\141\144\157"; $socios_contar = $json_cnpj[0]->qsa_preview; $contar = count($socios_contar); for ($i = 0; $i < $contar; $i++) { $socios_contar = $json_cnpj[0]->qsa_preview[$i]->nome; $nomes_socios[] = ucwords(strtolower($socios_contar)); } $nomes = implode("\73\40", $nomes_socios); print_r("\12\x20\x20\40\40\x20\x20\74\x70\76\x3c\x73\x70\141\156\76\x43\116\120\x4a\x3a\74\57\163\160\141\x6e\x3e\40{$cpf_cnpj}\x3c\x2f\160\76\12\40\x20\40\x20\x20\40\x3c\160\76\x3c\x73\x70\x61\x6e\x3e\x52\x61\x7a\xc3\243\x6f\40\x53\157\143\x69\141\x6c\x3a\x3c\x2f\163\x70\x61\156\x3e\40{$razao_social}\74\x2f\x70\x3e\xa\40\x20\x20\x20\x20\x20\x3c\160\x3e\74\x73\160\141\x6e\x3e\105\55\155\141\151\154\40\123\xc3\263\x63\151\157\x3a\x3c\57\163\160\141\156\76\40{$email_socio}\x3c\57\x70\76\xa\x20\40\40\x20\x20\x20\x3c\x70\76\74\x73\160\141\x6e\76\x53\xc3\xb3\x63\151\157\x73\x3a\74\57\x73\x70\141\156\76\40{$nomes}\74\x2f\x70\76\12\40\40\x20\40"); } else { echo "\x49\x6e\146\x6f\162\155\145\x20\165\x6d\x20\x76\141\154\x6f\x72\40\x76\303\xa1\x6c\x69\144\x6f\x2c\40\x70\157\x72\x20\146\141\166\x6f\162\56"; } } else { echo "\75\x28\40\x54\122\111\123\124\x45\x20\x45\123\x54\x4f\125\x21"; }
Function Calls
None |
Stats
MD5 | a858a81227a8a471f5af7b488072179b |
Eval Count | 0 |
Decode Time | 83 ms |