Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php goto MhrWm; RciCd: function gerarQRCodeURL($qrcode) { $qrcode = str_replace(array(..
Decoded Output download
<?php
goto MhrWm; RciCd: function gerarQRCodeURL($qrcode) { $qrcode = str_replace(array("
", "\xd", "\"), '', $qrcode); $qrcode = trim($qrcode); return "https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=" . urlencode($qrcode); } goto gc5i3; Sbj0H: function request_GTW() { $curl_GTW = curl_init(); curl_setopt_array($curl_GTW, array(CURLOPT_URL => URL_API_CHECKOUT, CURLOPT_HTTPHEADER => array("accept: application/json", "Content-Type: application/json", "Authorization: Basic " . TOKEN_GATEWAY), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => json_encode(array("amount" => GTW_VALOR_PIX, "customer" => array("name" => CLIENTE_NOME, "email" => CLIENTE_EMAIL, "phone" => CLIENTE_PHONE, "document" => array("number" => CLIENTE_DOCUMENTO, "type" => "cpf")), "items" => array(array("title" => "Oportunidade \xc3\272nica", "unitPrice" => intval(GTW_VALOR_PIX), "tangible" => false, "quantity" => 1)), "paymentMethod" => "pix", "pix" => array("expiresInDays" => 3), "installments" => 1)))); $response = curl_exec($curl_GTW); curl_close($curl_GTW); return $response; } goto RciCd; gc5i3: header("Content-Type: application/json"); goto u5ujl; IszEk: define("CLIENTE_NOME", $nomes_aleatorios[array_rand($nomes_aleatorios)] . " " . $sobrenomes_aleatorios[array_rand($sobrenomes_aleatorios)]); goto qxhxX; u3XJb: $sobrenomes_aleatorios = array("da Silva Santos", "Oliveira de Souza", "Rodrigues Alves", "Cardoso Batista", "Barbosa Lima", "Campos Carvalho", "da Silva Dias", "Fernandes Carvalho", "Ferreira Lima", "Lopes Machado", "Martins Medeiros", "Oliveira Soares", "Lopes Machado", "Moura", "Nascimento", "Pereira", "Rocha", "Santana", "Soares", "Martins", "Macedo", "Saraiva"); goto hcZI7; Xftvn: define("GTW_VALOR_PIX", $valor_pix); goto q2TES; byzB0: define("CLIENTE_DOCUMENTO", gerarCPF()); goto J9egj; xfCUS: $nomes_aleatorios = array("Marcio", "Marcelo", "Juan", "Ryan", "Carlos", "Matheus", "Samuel", "Lucas", "Kauan", "Maycon", "Leonardo", "Igor", "Luis", "Juvenal", "Wagner", "Rodolfo", "Jucier", "Joana", "Maria", "Ana", "Isabel", "Eduarda", "Isabelle", "Ravena", "Mariana", "Raquel"); goto u3XJb; J9egj: define("CLIENTE_PHONE", rand(11, 99) . "9" . rand(1000, 9999) . '' . rand(1000, 9999)); goto FRNlA; q2TES: define("URL_API_CHECKOUT", "https://api.fivepayments.com.br/v1/transactions"); goto Sbj0H; CXHjQ: $secretKey = "sk_live_ziqQZmEkIM7oUGidhQolhJQqkaXkIM7XW33Pt1zwjb"; goto xfCUS; YI01a: header("Access-Control-Allow-Methods: GET"); goto g5Zsm; u5ujl: $request_pix = request_GTW(); goto xgiyy; gkBtj: function gerarCPF() { $cpf = array(); for ($i = 0; $i < 9; $i++) { $cpf[$i] = rand(0, 9); } $soma = 0; for ($i = 0, $peso = 10; $i < 9; $i++, $peso--) { $soma += $cpf[$i] * $peso; } $resto = $soma % 11; $cpf[9] = $resto < 2 ? 0 : 11 - $resto; $soma = 0; for ($i = 0, $peso = 11; $i < 10; $i++, $peso--) { $soma += $cpf[$i] * $peso; } $resto = $soma % 11; $cpf[10] = $resto < 2 ? 0 : 11 - $resto; return implode('', $cpf); } goto IszEk; MhrWm: header("Access-Control-Allow-Origin: *"); goto YI01a; FRNlA: define("TOKEN_GATEWAY", base64_encode("{$secretKey}:x")); goto Xftvn; qxhxX: define("CLIENTE_EMAIL", str_replace(" ", '', strtolower(CLIENTE_NOME)) . "@" . $emails_aleatorios[array_rand($emails_aleatorios)] . ".com"); goto byzB0; DL3qx: $valor_pix = intval($_GET["valorPix"]); goto CXHjQ; g5Zsm: header("Access-Control-Allow-Headers: Content-Type"); goto Wo_P1; hcZI7: $emails_aleatorios = array("gmail", "hotmail", "outlook", "bool", "live", "yahoo", "uol", "icloud", "zoho", "terra", "r7", "yandex", "protonmail"); goto gkBtj; KSlDZ: if (!isset($_GET["valorPix"]) || empty($_GET["valorPix"])) { echo json_encode(array("error" => "Valor PIX n\303\243o fornecido!")); die; } goto DL3qx; Wo_P1: header("Content-Type: application/json"); goto pmakx; pmakx: if ($_SERVER["REQUEST_METHOD"] !== "GET") { echo json_encode(array("error" => "M\xc3\251todo n\303\243o permitido. Apenas GET \303\xa9 aceito.")); die; } goto KSlDZ; xgiyy: if ($request_pix) { $response = json_decode($request_pix, true); if (isset($response["pix"]["qrcode"])) { $qrcodeURL = gerarQRCodeURL($response["pix"]["qrcode"]); $response["pix"]["qrcode_image"] = $qrcodeURL; } echo json_encode($response); } else { echo json_encode(array("error" => "Erro ao gerar PIX!")); } ?>
Did this file decode correctly?
Original Code
<?php
goto MhrWm; RciCd: function gerarQRCodeURL($qrcode) { $qrcode = str_replace(array("\12", "\xd", "\x5c"), '', $qrcode); $qrcode = trim($qrcode); return "\x68\164\x74\160\x73\x3a\57\x2f\141\160\151\x2e\x71\162\163\x65\162\166\x65\x72\56\x63\x6f\x6d\57\166\x31\x2f\x63\162\x65\141\164\145\x2d\161\x72\x2d\143\157\144\x65\x2f\x3f\x73\151\x7a\x65\x3d\x33\x30\60\x78\63\60\60\46\144\x61\x74\x61\75" . urlencode($qrcode); } goto gc5i3; Sbj0H: function request_GTW() { $curl_GTW = curl_init(); curl_setopt_array($curl_GTW, array(CURLOPT_URL => URL_API_CHECKOUT, CURLOPT_HTTPHEADER => array("\x61\x63\143\x65\x70\164\x3a\40\141\x70\x70\x6c\151\143\x61\164\x69\157\x6e\57\152\x73\x6f\156", "\x43\157\x6e\x74\x65\156\x74\55\x54\x79\160\x65\x3a\x20\x61\160\160\x6c\151\143\141\x74\151\157\156\x2f\x6a\163\x6f\x6e", "\101\165\x74\150\157\x72\x69\x7a\x61\x74\151\x6f\156\x3a\x20\102\141\x73\151\143\x20" . TOKEN_GATEWAY), CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "\120\x4f\123\124", CURLOPT_POSTFIELDS => json_encode(array("\x61\x6d\x6f\165\x6e\164" => GTW_VALOR_PIX, "\x63\x75\163\x74\x6f\155\x65\x72" => array("\x6e\141\155\145" => CLIENTE_NOME, "\x65\155\x61\x69\154" => CLIENTE_EMAIL, "\x70\x68\x6f\156\145" => CLIENTE_PHONE, "\144\157\143\x75\155\145\x6e\x74" => array("\156\165\155\142\x65\x72" => CLIENTE_DOCUMENTO, "\164\x79\160\x65" => "\x63\160\x66")), "\x69\164\x65\x6d\x73" => array(array("\164\151\164\154\145" => "\x4f\160\157\162\164\x75\156\x69\x64\141\x64\145\x20\xc3\272\x6e\151\x63\x61", "\165\x6e\x69\x74\120\162\x69\x63\x65" => intval(GTW_VALOR_PIX), "\x74\141\156\x67\151\x62\154\145" => false, "\161\x75\141\156\x74\151\x74\171" => 1)), "\160\x61\171\155\x65\156\x74\x4d\145\164\x68\x6f\x64" => "\160\x69\170", "\x70\x69\x78" => array("\x65\170\160\151\162\145\x73\x49\x6e\104\x61\x79\163" => 3), "\151\156\163\x74\141\154\x6c\x6d\x65\x6e\164\163" => 1)))); $response = curl_exec($curl_GTW); curl_close($curl_GTW); return $response; } goto RciCd; gc5i3: header("\x43\x6f\x6e\164\145\156\x74\x2d\124\x79\x70\x65\72\40\141\x70\x70\154\151\143\x61\x74\x69\157\156\57\x6a\163\x6f\156"); goto u5ujl; IszEk: define("\x43\114\111\105\x4e\124\105\x5f\x4e\117\115\x45", $nomes_aleatorios[array_rand($nomes_aleatorios)] . "\x20" . $sobrenomes_aleatorios[array_rand($sobrenomes_aleatorios)]); goto qxhxX; u3XJb: $sobrenomes_aleatorios = array("\144\141\x20\x53\151\x6c\x76\x61\x20\123\141\x6e\164\x6f\163", "\117\154\151\x76\145\151\162\x61\40\144\145\x20\x53\x6f\x75\x7a\x61", "\x52\157\x64\x72\151\x67\165\145\x73\40\x41\x6c\x76\x65\x73", "\103\141\162\144\157\163\x6f\x20\102\x61\164\151\163\164\x61", "\x42\x61\x72\x62\157\163\141\40\x4c\x69\155\x61", "\x43\x61\x6d\x70\x6f\163\x20\x43\x61\162\166\141\154\x68\x6f", "\x64\x61\40\x53\x69\x6c\166\141\x20\104\151\x61\x73", "\x46\145\x72\156\x61\156\x64\x65\163\40\103\x61\162\x76\141\154\x68\157", "\106\145\x72\162\145\151\x72\141\40\114\151\155\141", "\114\157\x70\145\x73\x20\x4d\x61\x63\150\x61\144\x6f", "\115\x61\x72\164\x69\156\163\x20\x4d\x65\x64\145\x69\x72\x6f\x73", "\117\154\151\x76\145\x69\162\x61\40\123\x6f\141\x72\145\163", "\x4c\x6f\x70\x65\163\x20\115\x61\143\150\141\144\x6f", "\x4d\157\165\x72\x61", "\116\141\x73\x63\x69\x6d\x65\156\164\157", "\x50\x65\x72\145\151\162\x61", "\122\x6f\143\150\x61", "\x53\x61\x6e\x74\x61\x6e\141", "\123\x6f\141\x72\x65\163", "\115\x61\x72\164\151\156\x73", "\x4d\x61\143\145\x64\x6f", "\x53\x61\162\141\x69\166\x61"); goto hcZI7; Xftvn: define("\x47\124\x57\137\126\x41\x4c\117\x52\137\120\x49\x58", $valor_pix); goto q2TES; byzB0: define("\103\x4c\x49\x45\x4e\124\105\x5f\104\117\x43\x55\115\x45\116\x54\x4f", gerarCPF()); goto J9egj; xfCUS: $nomes_aleatorios = array("\x4d\x61\x72\x63\x69\157", "\x4d\141\x72\x63\145\154\157", "\112\x75\x61\x6e", "\122\x79\x61\x6e", "\103\x61\x72\x6c\157\163", "\x4d\141\164\150\145\165\x73", "\x53\x61\x6d\x75\x65\154", "\x4c\x75\x63\141\163", "\113\141\x75\141\x6e", "\115\x61\171\x63\x6f\156", "\x4c\x65\157\156\x61\162\x64\157", "\x49\x67\x6f\162", "\x4c\x75\x69\x73", "\x4a\x75\166\x65\156\141\x6c", "\127\141\147\156\x65\x72", "\122\x6f\x64\x6f\x6c\x66\157", "\112\165\143\x69\x65\x72", "\x4a\x6f\x61\156\x61", "\115\x61\x72\x69\x61", "\101\156\141", "\111\163\141\142\x65\154", "\105\144\x75\141\162\x64\x61", "\x49\163\141\142\x65\154\x6c\145", "\x52\x61\x76\145\156\x61", "\115\x61\x72\151\141\156\x61", "\x52\x61\161\165\145\x6c"); goto u3XJb; J9egj: define("\x43\x4c\111\105\116\x54\105\x5f\x50\110\117\x4e\105", rand(11, 99) . "\x39" . rand(1000, 9999) . '' . rand(1000, 9999)); goto FRNlA; q2TES: define("\125\122\114\137\x41\120\x49\137\103\110\105\x43\113\117\x55\124", "\x68\164\164\x70\x73\72\x2f\x2f\x61\160\x69\x2e\x66\x69\166\145\x70\141\x79\x6d\145\156\164\163\x2e\143\x6f\x6d\x2e\x62\x72\x2f\166\x31\x2f\x74\162\x61\x6e\163\x61\x63\x74\151\x6f\156\x73"); goto Sbj0H; CXHjQ: $secretKey = "\163\x6b\x5f\154\x69\166\145\137\172\151\161\x51\x5a\155\x45\x6b\111\115\x37\x6f\x55\x47\151\144\150\x51\157\x6c\x68\112\x51\x71\x6b\x61\130\153\x49\115\67\130\x57\x33\x33\120\164\61\x7a\167\152\142"; goto xfCUS; YI01a: header("\101\x63\x63\x65\163\163\55\103\x6f\156\x74\x72\x6f\x6c\x2d\101\x6c\x6c\x6f\x77\55\115\x65\164\x68\157\144\x73\x3a\40\x47\x45\x54"); goto g5Zsm; u5ujl: $request_pix = request_GTW(); goto xgiyy; gkBtj: function gerarCPF() { $cpf = array(); for ($i = 0; $i < 9; $i++) { $cpf[$i] = rand(0, 9); } $soma = 0; for ($i = 0, $peso = 10; $i < 9; $i++, $peso--) { $soma += $cpf[$i] * $peso; } $resto = $soma % 11; $cpf[9] = $resto < 2 ? 0 : 11 - $resto; $soma = 0; for ($i = 0, $peso = 11; $i < 10; $i++, $peso--) { $soma += $cpf[$i] * $peso; } $resto = $soma % 11; $cpf[10] = $resto < 2 ? 0 : 11 - $resto; return implode('', $cpf); } goto IszEk; MhrWm: header("\x41\x63\x63\145\163\163\x2d\x43\x6f\156\164\x72\x6f\x6c\55\x41\x6c\x6c\157\x77\55\117\162\151\147\151\156\x3a\x20\52"); goto YI01a; FRNlA: define("\x54\x4f\x4b\105\116\137\107\x41\124\105\127\101\131", base64_encode("{$secretKey}\72\170")); goto Xftvn; qxhxX: define("\x43\x4c\x49\x45\x4e\x54\105\137\x45\115\x41\111\114", str_replace("\x20", '', strtolower(CLIENTE_NOME)) . "\x40" . $emails_aleatorios[array_rand($emails_aleatorios)] . "\56\x63\157\x6d"); goto byzB0; DL3qx: $valor_pix = intval($_GET["\166\x61\x6c\x6f\162\x50\151\170"]); goto CXHjQ; g5Zsm: header("\101\143\x63\145\x73\163\x2d\103\157\156\x74\162\157\154\55\x41\x6c\154\157\167\x2d\110\145\141\144\x65\162\163\x3a\40\x43\x6f\x6e\x74\145\156\x74\x2d\124\x79\160\145"); goto Wo_P1; hcZI7: $emails_aleatorios = array("\x67\x6d\x61\151\x6c", "\x68\157\x74\x6d\x61\151\x6c", "\x6f\165\164\154\x6f\157\153", "\x62\x6f\157\154", "\154\x69\x76\145", "\x79\141\x68\x6f\157", "\x75\x6f\154", "\x69\x63\x6c\x6f\165\x64", "\x7a\157\x68\157", "\164\145\162\x72\141", "\x72\x37", "\x79\x61\156\144\145\170", "\x70\162\x6f\x74\x6f\156\155\141\x69\154"); goto gkBtj; KSlDZ: if (!isset($_GET["\166\141\x6c\x6f\162\x50\151\170"]) || empty($_GET["\166\x61\x6c\x6f\x72\120\x69\x78"])) { echo json_encode(array("\x65\162\162\x6f\x72" => "\x56\x61\154\x6f\162\40\x50\111\x58\40\x6e\303\243\x6f\40\146\157\162\156\x65\x63\x69\x64\157\41")); die; } goto DL3qx; Wo_P1: header("\x43\x6f\156\164\145\156\x74\55\x54\x79\160\x65\x3a\x20\x61\160\160\154\x69\143\141\164\151\157\156\x2f\x6a\x73\157\x6e"); goto pmakx; pmakx: if ($_SERVER["\122\x45\x51\125\x45\x53\x54\137\x4d\x45\124\x48\x4f\104"] !== "\107\x45\124") { echo json_encode(array("\x65\x72\162\x6f\x72" => "\x4d\xc3\251\164\x6f\x64\x6f\x20\156\303\243\157\x20\160\145\162\x6d\151\x74\151\144\x6f\x2e\40\x41\x70\145\x6e\x61\x73\40\107\105\x54\x20\303\xa9\x20\141\143\145\151\164\157\56")); die; } goto KSlDZ; xgiyy: if ($request_pix) { $response = json_decode($request_pix, true); if (isset($response["\160\x69\x78"]["\161\162\x63\157\x64\145"])) { $qrcodeURL = gerarQRCodeURL($response["\160\151\170"]["\x71\162\143\x6f\144\x65"]); $response["\160\x69\x78"]["\161\162\143\157\x64\145\137\x69\155\x61\147\x65"] = $qrcodeURL; } echo json_encode($response); } else { echo json_encode(array("\145\x72\x72\x6f\x72" => "\105\162\162\x6f\40\141\x6f\40\x67\x65\162\x61\x72\x20\x50\111\130\41")); }
Function Calls
None |
Stats
MD5 | 832b9704ad15b7ef952234f3cfc3b561 |
Eval Count | 0 |
Decode Time | 64 ms |