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 rw0I2; dbCMR: if ($rodada == "\x6e\x61\157\x70\141\147\141") { $result = arra..
Decoded Output download
<?php
goto rw0I2; dbCMR: if ($rodada == "naopaga") { $result = array("tipo" => "naopagante", "rodada" => $randombetdie); } goto DBxtt; xI7D4: $stmt = $conn->prepare($queryvbonus); goto cUmGv; tJlhW: function decTokenImproved($token) { $decoded = decodeToken($token); if (!isJson($decoded)) { return array("status" => false, "message" => "Invalid token"); } $data = json_decode($decoded, true); $data["status"] = true; return $data; } goto s9YP8; h4DHa: $stmt->bind_param("s", $idgame); goto SjvUl; Zem0R: $stmt->bind_param("s", $playerid); goto J71T3; XlnMz: if ($_SERVER["REQUEST_METHOD"] !== "POST") { die(json_encode(array("error" => "Acesso invlido."))); } goto K4STQ; Zhcia: $winrate = $rowporcentagens["winrate"]; goto BrneZ; AL9wu: function arredondarParaCimaSeNecessario($valor) { if ($valor % 1 === 0.99) { $valor += 0.01; } $valorFormatado = number_format($valor, 2, ".", ''); return (double) $valorFormatado; } goto Kvf2N; Bjj1E: function isJson($string) { json_decode($string); return json_last_error() === JSON_ERROR_NONE; } goto tJlhW; Igekp: if ($saldousuario < $valortotalaposta) { $response = "{"dt":{"si":{"wp":null,"lw":null,"c":null,"orl":[3,6,7,6,3,7,4,5,4,8,9,7,9,8,7],"fs":null,"gwt":-1,"fb":null,"ctw":0.0,"pmt":null,"cwc":0,"fstc":null,"pcwc":0,"rwsp":null,"hashr":null,"ml":" . $ml . ","cs":" . $cs . ","rl":[3,6,7,6,3,7,4,5,4,8,9,7,9,8,7],"sid":"1732975974431201793","psid":"1732975974431201793","st":1,"nst":1,"pf":1,"aw":0.00,"wid":0,"wt":"C","wk":"0_C","wbn":null,"wfg":null,"blb":" . $saldousuario . ","blab":" . $saldousuario . ","bl":" . $saldousuario . ","tb":0.00,"tbb":0.00,"tw":0.00,"np":0.00,"ocr":null,"mr":null,"ge":[1,11]}},"err":{"cd":"3202","msg":"Not enough cash.","tid":"DPMBIN08"}}"; echo json_encode($response, JSON_UNESCAPED_SLASHES); die; } goto wAgZ3; Nvbxo: $randombetlive = $betlives[array_rand($betlives)]; goto iVXyZ; J71T3: $stmt->execute(); goto wkneN; cUmGv: $stmt->bind_param("s", $playerid); goto sgIXA; f2n2N: function calcularRTP($probabilidade) { $rand = rand(1, 100); $acumulado = 0; foreach ($probabilidade as $resultado => $chance) { $acumulado += $chance; if ($rand <= $acumulado) { return $resultado; } } } goto pde5F; zLFkQ: $bonus = $rowporcentagens["bonusrate"]; goto dx9VY; Rutaw: $tembonus = $verificarodadabonus->fetch_assoc(); goto FbKXQ; v3Tq7: if ($rowsite["is_demo_agent"] == 1) { $probabilidades = array("paga" => $afiliadowinrate, "naopaga" => $afiliadoloserate, "bonus" => $afiliadobonus); } goto y3WM1; Nh_I7: $resultadoporcentagens = $stmt->get_result(); goto C5lta; Kvf2N: function retornaganhobet($valorcs, $valorml, $simbolopagante) { $resultado = $valorcs * $valorml * $simbolopagante; return $resultado; } goto c62P5; u8rwk: $query = "SELECT * FROM wallets WHERE user_id = ?"; goto ttdmx; s5dXg: $playerid = $tokenOpen["id"] ?? null; goto JHLEU; dx9VY: $afiliadowinrate = $rowporcentagens["affwinrate"]; goto Ign6c; iVXyZ: $randombetdie = $betdies[array_rand($betdies)]; goto sim5Z; aQ_8U: $betbonus = file("carta.txt", FILE_IGNORE_NEW_LINES); goto Nvbxo; uvdA0: $stmt->bind_param("s", $userId); goto s_e_9; YXFA7: $spin = json_decode($result["rodada"], true); goto aMekf; JHLEU: if (!$playerid) { die(json_encode(array("error" => "ID de usurio invlido."))); } goto u8rwk; BrneZ: $loserate = $rowporcentagens["lossrate"]; goto zLFkQ; sim5Z: $randombonus = $betbonus[array_rand($betbonus)]; goto l0eVU; Ign6c: $afiliadoloserate = $rowporcentagens["afflossrate"]; goto s7ddt; tqumm: $verificarodadabonus = $stmt->get_result(); goto Rutaw; wkneN: $resultadoconsultasite = $stmt->get_result(); goto R1XYc; v39BE: if ($rodada == "paga") { $result = array("tipo" => "pagante", "rodada" => $randombetlive); } goto dbCMR; K4STQ: if (!isset($_POST["atk"])) { die(json_encode(array("error" => "Token no fornecido."))); } goto ZWXIn; SjvUl: $stmt->execute(); goto Nh_I7; l1r8Q: $saldousuario = $wallet["balance_withdrawal"]; goto GfKWS; R1XYc: $rowsite = $resultadoconsultasite->fetch_assoc(); goto f2n2N; wAgZ3: $queryvbonus = "SELECT * FROM betspg WHERE userid = ?"; goto xI7D4; sJdYX: $betdies = file("naopagantes.txt", FILE_IGNORE_NEW_LINES); goto aQ_8U; eozbi: $stmt = $conn->prepare($queryconsultasite); goto Zem0R; l0eVU: $idgame = "jungle-delight"; goto fxGhl; C5lta: $rowporcentagens = $resultadoporcentagens->fetch_assoc(); goto Zhcia; R4nH1: $result = $stmt->get_result(); goto HTclk; pde5F: $probabilidades = array("paga" => $winrate, "naopaga" => $loserate, "bonus" => $bonus); goto v3Tq7; SiGNT: $userId = $tokenOpen["id"] ?? null; goto s5dXg; ZWXIn: function decodeToken($texto) { $retorno = ''; $saidaSubs = ''; $busca0 = array("8", "e", "9", "f", "b", "d", "h", "g", "j", "i", "m", "o", "k", "z", "l", "w", "4", "s", "r", "u", "t", "x", "v", "p", "6", "n", "7", "2", "1", "5", "q", "3", "y", "0", "c", "a"); $subti0 = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); for ($i = 0; $i < strlen($texto); $i++) { $ti = array_search($texto[$i], $busca0); if ($busca0[$ti] == $texto[$i]) { $saidaSubs .= $subti0[$ti]; } else { $saidaSubs .= $texto[$i]; } } $retorno = base64_decode($saidaSubs); return $retorno; } goto Bjj1E; ShWgK: $stmt = $conn->prepare($queryconsultaporcentagens); goto h4DHa; rw0I2: include "../../../db.php"; goto XlnMz; fxGhl: $queryconsultaporcentagens = "SELECT * FROM pgporcentagem WHERE jogo = ?"; goto ShWgK; BHtzJ: $valortotalaposta = $cs * $ml * 20; goto Igekp; v_f38: if ($stmt === false) { die(json_encode(array("error" => "Falha ao preparar a consulta."))); } goto uvdA0; s9YP8: $cs = $_POST["cs"]; goto e51YP; R5Ibk: $tokenOpen = decTokenImproved($_POST["atk"]); goto SiGNT; s_e_9: $stmt->execute(); goto R4nH1; y3WM1: $rodada = calcularRTP($probabilidades); goto v39BE; ttdmx: $stmt = $conn->prepare($query); goto v_f38; HTclk: $wallet = $result->fetch_assoc(); goto gVmdJ; sgIXA: $stmt->execute(); goto tqumm; hy3aT: $queryconsultasite = "SELECT * FROM users WHERE id = ?"; goto eozbi; FbKXQ: if ($tembonus) { $retornoarquivobonus = lerarquivoBonus($tembonus["simbolobonus"]); $quantidaderodadas = count($retornoarquivobonus) - 1; $recebedadosspin = $retornoarquivobonus[$tembonus["quantidaderodadabonus"]]; $spinjson = json_decode($recebedadosspin, true); $giro = $spinjson; $multiplicador = $giro["dt"]["si"]["ctw"] / $giro["dt"]["si"]["cs"] / $giro["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); $novosaldobet = $saldousuario + $valordoganho; $adicionabonus = $tembonus["quantidaderodadabonus"] + 1; $atualizabonus = "UPDATE betspg SET quantidaderodadabonus = '{$adicionabonus}' WHERE userid = '{$playerid}'"; $rowbonusadd = $conn->query($atualizabonus); $somaaw = $tembonus["totalbonus"] + $valordoganho; $atualizatotalbonus = "UPDATE betspg SET totalbonus = '{$somaaw}' WHERE userid = '{$playerid}'"; $rowtotalbonusadd = $conn->query($atualizatotalbonus); $diferensaaposta = $saldousuario - $valortotalaposta; if ($tembonus["quantidaderodadabonus"] >= $quantidaderodadas) { $deletabonusativo = "DELETE FROM betspg WHERE userid = '{$playerid}'"; $zerarodadabonus = $conn->query($deletabonusativo); $multiplica = $giro["dt"]["si"]["ctw"] / $giro["dt"]["si"]["cs"] / $giro["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplica)); if (is_array($giro["dt"]["si"]["lw"])) { foreach ($giro["dt"]["si"]["lw"] as $chave => $valor) { $lw_count = count($giro["dt"]["si"]["lw"]); $giro["dt"]["si"]["lw"][$chave] = $valordoganho / $lw_count; } } $diferensaaposta = $saldousuario - $valortotalaposta; $novosaldobet = $saldousuario + $valordoganho; $giro["dt"]["si"]["cs"] = $cs; $giro["dt"]["si"]["ml"] = $ml; $giro["dt"]["si"]["blb"] = $saldousuario; $giro["dt"]["si"]["blab"] = $diferensaaposta; $giro["dt"]["si"]["bl"] = $novosaldobet; $giro["dt"]["si"]["tb"] = $valortotalaposta; $giro["dt"]["si"]["tbb"] = $valortotalaposta; $giro["dt"]["si"]["tw"] = $valordoganho; $giro["dt"]["si"]["ctw"] = $valordoganho; $giro["dt"]["si"]["aw"] = $somaaw; $giro["dt"]["si"]["fs"]["aw"] = $somaaw; $giro["dt"]["si"]["np"] = $valordoganho; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($giro, JSON_UNESCAPED_SLASHES); die; } $giro["dt"]["si"]["cs"] = $cs; $giro["dt"]["si"]["ml"] = $ml; $giro["dt"]["si"]["blb"] = $saldousuario; $giro["dt"]["si"]["blab"] = $diferensaaposta; $giro["dt"]["si"]["bl"] = $novosaldobet; $giro["dt"]["si"]["tb"] = $valortotalaposta; $giro["dt"]["si"]["tbb"] = $valortotalaposta; $giro["dt"]["si"]["tw"] = $valordoganho; $giro["dt"]["si"]["ctw"] = $valordoganho; $giro["dt"]["si"]["aw"] = $somaaw; $giro["dt"]["si"]["fs"]["aw"] = $somaaw; $giro["dt"]["si"]["np"] = $valordoganho; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($giro, JSON_UNESCAPED_SLASHES); die; } goto YXFA7; GfKWS: $betlives = file("pagantes.txt", FILE_IGNORE_NEW_LINES); goto sJdYX; e51YP: $ml = $_POST["ml"]; goto R5Ibk; s7ddt: $afiliadobonus = $rowporcentagens["affbonusrate"]; goto hy3aT; DBxtt: if ($rodada == "bonus") { $result = array("tipo" => "bonus", "rodada" => $randombonus); } goto AL9wu; gVmdJ: if (!$wallet) { die(json_encode(array("error" => "Carteira no encontrada."))); } goto l1r8Q; c62P5: function lerarquivoBonus($simbolobonus) { $listabonus = file("bonus/bonus{$simbolobonus}.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); return $listabonus; } goto OnkKP; OnkKP: function value($string, $start, $end) { $str = explode($start, $string); $str = explode($end, $str[1]); return $str[0]; } goto BHtzJ; aMekf: if ($result["tipo"] == "pagante") { $multiplicador = $spin["dt"]["si"]["aw"] / $spin["dt"]["si"]["cs"] / $spin["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); foreach ($spin["dt"]["si"]["lw"] as $chave => $valor) { $lw_count = count($spin["dt"]["si"]["lw"]); $spin["dt"]["si"]["lw"][$chave] = $valordoganho / $lw_count; } $diferensaaposta = $saldousuario - $valortotalaposta; $novosaldobet = $diferensaaposta + $valordoganho; $spin["dt"]["si"]["cs"] = $cs; $spin["dt"]["si"]["ml"] = $ml; $spin["dt"]["si"]["blb"] = $saldousuario; $spin["dt"]["si"]["blab"] = $diferensaaposta; $spin["dt"]["si"]["bl"] = $novosaldobet; $spin["dt"]["si"]["tb"] = $valortotalaposta; $spin["dt"]["si"]["tbb"] = $valortotalaposta; $spin["dt"]["si"]["tw"] = $valordoganho; $spin["dt"]["si"]["ctw"] = $valordoganho; $spin["dt"]["si"]["aw"] = $valordoganho; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } elseif ($result["tipo"] == "naopagante") { $novosaldobet = $saldousuario - $valortotalaposta; $diferensaaposta = $saldousuario - $valortotalaposta; $spin["dt"]["si"]["cs"] = $cs; $spin["dt"]["si"]["ml"] = $ml; $spin["dt"]["si"]["ctw"] = 0; $spin["dt"]["si"]["aw"] = 0; $spin["dt"]["si"]["blb"] = $saldousuario; $spin["dt"]["si"]["blab"] = $diferensaaposta; $spin["dt"]["si"]["bl"] = $novosaldobet; $spin["dt"]["si"]["tb"] = $valortotalaposta; $spin["dt"]["si"]["tbb"] = $valortotalaposta; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } elseif ($result["tipo"] == "bonus") { $multiplicador = $spin["dt"]["si"]["aw"] / $spin["dt"]["si"]["cs"] / $spin["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); $novosaldobet = $saldousuario - $valortotalaposta; $diferensaaposta = $saldousuario - $valortotalaposta; $spin["dt"]["si"]["cs"] = $cs; $spin["dt"]["si"]["ml"] = $ml; $spin["dt"]["si"]["blb"] = $saldousuario; $spin["dt"]["si"]["blob"] = $novosaldobet; $spin["dt"]["si"]["blab"] = $diferensaaposta; $spin["dt"]["si"]["bl"] = $novosaldobet; $spin["dt"]["si"]["tb"] = $valortotalaposta; $spin["dt"]["si"]["tbb"] = $valortotalaposta; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); $querybonus = "SELECT * FROM betspg WHERE userid = ?"; $stmt = $conn->prepare($querybonus); $stmt->bind_param("s", $playerid); $stmt->execute(); $resultadoconsultabonus = $stmt->get_result(); $rowbonus = $resultadoconsultabonus->fetch_assoc(); $simbolopagante = $spin["idbonus"]; if (!$rowbonus) { $sql = "INSERT INTO betspg (userid, rodadabonus, quantidaderodadabonus, simbolobonus, totalbonus) VALUES (?, '0', '0', '{$simbolopagante}', '0')"; $stmt = $conn->prepare($sql); $stmt->bind_param("s", $playerid); $stmt->execute(); } echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } else { echo json_encode(array("status" => false, "message" => "Spin no Encontrado!")); } ?>
Did this file decode correctly?
Original Code
<?php
goto rw0I2; dbCMR: if ($rodada == "\x6e\x61\157\x70\141\147\141") { $result = array("\x74\151\160\x6f" => "\x6e\x61\x6f\160\141\147\141\x6e\164\x65", "\162\157\x64\141\x64\141" => $randombetdie); } goto DBxtt; xI7D4: $stmt = $conn->prepare($queryvbonus); goto cUmGv; tJlhW: function decTokenImproved($token) { $decoded = decodeToken($token); if (!isJson($decoded)) { return array("\x73\x74\x61\164\165\163" => false, "\155\145\x73\x73\x61\x67\145" => "\111\156\166\141\x6c\151\x64\40\164\157\153\145\156"); } $data = json_decode($decoded, true); $data["\163\164\x61\x74\165\x73"] = true; return $data; } goto s9YP8; h4DHa: $stmt->bind_param("\x73", $idgame); goto SjvUl; Zem0R: $stmt->bind_param("\163", $playerid); goto J71T3; XlnMz: if ($_SERVER["\122\105\x51\x55\105\x53\x54\x5f\115\105\x54\x48\117\104"] !== "\x50\117\123\124") { die(json_encode(array("\x65\162\x72\157\162" => "\101\x63\145\x73\x73\x6f\x20\x69\x6e\166\xc3\241\x6c\x69\144\x6f\x2e"))); } goto K4STQ; Zhcia: $winrate = $rowporcentagens["\x77\151\156\x72\141\x74\x65"]; goto BrneZ; AL9wu: function arredondarParaCimaSeNecessario($valor) { if ($valor % 1 === 0.99) { $valor += 0.01; } $valorFormatado = number_format($valor, 2, "\56", ''); return (double) $valorFormatado; } goto Kvf2N; Bjj1E: function isJson($string) { json_decode($string); return json_last_error() === JSON_ERROR_NONE; } goto tJlhW; Igekp: if ($saldousuario < $valortotalaposta) { $response = "\x7b\42\x64\x74\x22\72\173\42\163\x69\42\x3a\x7b\42\167\160\42\72\x6e\x75\x6c\154\54\x22\154\x77\42\72\x6e\165\x6c\154\54\42\143\42\72\156\165\x6c\x6c\x2c\42\157\162\x6c\x22\x3a\133\x33\x2c\66\x2c\x37\x2c\66\x2c\x33\54\x37\x2c\64\x2c\x35\x2c\x34\x2c\x38\x2c\71\54\67\54\x39\54\x38\54\x37\135\54\42\146\163\x22\x3a\x6e\x75\154\154\54\x22\147\x77\x74\x22\72\55\x31\54\42\146\142\42\72\156\165\x6c\x6c\x2c\42\x63\164\167\42\72\60\x2e\x30\x2c\x22\x70\155\x74\x22\x3a\156\165\154\154\54\x22\x63\x77\x63\42\x3a\x30\54\42\x66\163\164\143\42\72\x6e\x75\x6c\x6c\x2c\x22\160\x63\x77\x63\x22\72\60\54\42\x72\167\163\160\42\x3a\x6e\165\x6c\154\x2c\x22\x68\141\x73\150\x72\x22\x3a\156\x75\154\154\54\42\155\x6c\42\72" . $ml . "\x2c\x22\x63\x73\x22\x3a" . $cs . "\54\42\x72\154\x22\x3a\x5b\x33\x2c\66\x2c\67\54\x36\54\x33\x2c\x37\x2c\64\54\65\x2c\64\54\x38\x2c\x39\x2c\x37\54\x39\x2c\x38\x2c\x37\x5d\54\42\x73\151\144\x22\72\x22\61\x37\x33\x32\x39\x37\65\x39\x37\x34\x34\x33\61\62\x30\x31\67\x39\63\x22\54\x22\160\x73\151\144\x22\72\42\x31\67\63\x32\x39\67\65\x39\x37\64\x34\63\61\62\x30\61\67\71\63\x22\x2c\42\163\x74\42\72\61\x2c\42\x6e\x73\164\x22\x3a\x31\54\42\x70\x66\42\72\x31\x2c\x22\x61\x77\x22\72\x30\56\60\60\54\42\167\151\x64\x22\72\x30\54\x22\167\164\42\72\x22\x43\x22\x2c\x22\167\x6b\x22\x3a\x22\60\137\103\x22\54\x22\x77\142\x6e\42\x3a\156\x75\154\x6c\54\42\x77\x66\x67\42\72\156\165\x6c\154\54\42\x62\x6c\x62\x22\72" . $saldousuario . "\x2c\42\142\x6c\141\x62\42\x3a" . $saldousuario . "\x2c\x22\x62\x6c\42\72" . $saldousuario . "\54\42\164\142\42\72\60\56\x30\60\x2c\42\164\x62\142\x22\x3a\x30\x2e\x30\x30\54\x22\x74\x77\42\72\x30\56\60\60\x2c\x22\156\x70\x22\x3a\x30\56\x30\60\54\x22\157\x63\162\42\72\x6e\x75\x6c\x6c\x2c\x22\155\x72\42\72\156\165\x6c\x6c\x2c\42\147\x65\42\x3a\x5b\61\x2c\x31\61\135\175\175\x2c\42\x65\x72\x72\x22\x3a\x7b\x22\143\144\42\x3a\x22\63\x32\x30\62\42\x2c\x22\155\x73\147\x22\x3a\42\x4e\x6f\164\x20\x65\156\157\x75\147\x68\40\x63\141\163\x68\x2e\x22\54\42\164\x69\x64\42\72\x22\104\x50\115\102\111\116\60\x38\x22\175\x7d"; echo json_encode($response, JSON_UNESCAPED_SLASHES); die; } goto wAgZ3; Nvbxo: $randombetlive = $betlives[array_rand($betlives)]; goto iVXyZ; J71T3: $stmt->execute(); goto wkneN; cUmGv: $stmt->bind_param("\x73", $playerid); goto sgIXA; f2n2N: function calcularRTP($probabilidade) { $rand = rand(1, 100); $acumulado = 0; foreach ($probabilidade as $resultado => $chance) { $acumulado += $chance; if ($rand <= $acumulado) { return $resultado; } } } goto pde5F; zLFkQ: $bonus = $rowporcentagens["\x62\x6f\156\165\163\x72\141\164\145"]; goto dx9VY; Rutaw: $tembonus = $verificarodadabonus->fetch_assoc(); goto FbKXQ; v3Tq7: if ($rowsite["\x69\163\x5f\x64\x65\x6d\x6f\x5f\x61\147\x65\156\x74"] == 1) { $probabilidades = array("\x70\x61\x67\141" => $afiliadowinrate, "\156\x61\x6f\x70\141\147\141" => $afiliadoloserate, "\x62\157\x6e\165\x73" => $afiliadobonus); } goto y3WM1; Nh_I7: $resultadoporcentagens = $stmt->get_result(); goto C5lta; Kvf2N: function retornaganhobet($valorcs, $valorml, $simbolopagante) { $resultado = $valorcs * $valorml * $simbolopagante; return $resultado; } goto c62P5; u8rwk: $query = "\123\105\114\105\x43\124\x20\52\x20\106\122\117\115\x20\x77\141\x6c\x6c\x65\164\x73\x20\x57\110\x45\x52\105\40\165\x73\145\x72\x5f\x69\144\40\75\x20\77"; goto ttdmx; s5dXg: $playerid = $tokenOpen["\151\x64"] ?? null; goto JHLEU; dx9VY: $afiliadowinrate = $rowporcentagens["\x61\146\x66\x77\151\x6e\x72\x61\164\145"]; goto Ign6c; iVXyZ: $randombetdie = $betdies[array_rand($betdies)]; goto sim5Z; aQ_8U: $betbonus = file("\x63\x61\162\x74\141\x2e\x74\170\x74", FILE_IGNORE_NEW_LINES); goto Nvbxo; uvdA0: $stmt->bind_param("\163", $userId); goto s_e_9; YXFA7: $spin = json_decode($result["\x72\x6f\144\x61\144\x61"], true); goto aMekf; JHLEU: if (!$playerid) { die(json_encode(array("\x65\162\x72\157\162" => "\x49\104\40\144\145\x20\165\x73\165\xc3\xa1\162\x69\x6f\x20\x69\x6e\x76\xc3\241\x6c\x69\144\x6f\x2e"))); } goto u8rwk; BrneZ: $loserate = $rowporcentagens["\154\157\x73\163\162\x61\x74\145"]; goto zLFkQ; sim5Z: $randombonus = $betbonus[array_rand($betbonus)]; goto l0eVU; Ign6c: $afiliadoloserate = $rowporcentagens["\141\146\146\x6c\x6f\163\163\x72\x61\164\145"]; goto s7ddt; tqumm: $verificarodadabonus = $stmt->get_result(); goto Rutaw; wkneN: $resultadoconsultasite = $stmt->get_result(); goto R1XYc; v39BE: if ($rodada == "\160\x61\147\x61") { $result = array("\164\151\160\x6f" => "\160\141\x67\x61\x6e\x74\x65", "\x72\x6f\x64\x61\x64\141" => $randombetlive); } goto dbCMR; K4STQ: if (!isset($_POST["\141\x74\x6b"])) { die(json_encode(array("\145\x72\162\157\x72" => "\x54\157\153\x65\x6e\x20\x6e\303\xa3\x6f\40\x66\157\162\156\x65\143\x69\x64\x6f\x2e"))); } goto ZWXIn; SjvUl: $stmt->execute(); goto Nh_I7; l1r8Q: $saldousuario = $wallet["\142\x61\154\141\x6e\x63\x65\137\x77\151\x74\x68\144\x72\x61\167\141\154"]; goto GfKWS; R1XYc: $rowsite = $resultadoconsultasite->fetch_assoc(); goto f2n2N; wAgZ3: $queryvbonus = "\123\105\114\x45\x43\x54\x20\52\40\x46\x52\117\x4d\x20\142\x65\x74\163\160\x67\40\127\110\x45\x52\105\x20\x75\163\x65\x72\x69\144\x20\75\x20\x3f"; goto xI7D4; sJdYX: $betdies = file("\x6e\x61\157\x70\x61\147\x61\156\164\145\x73\56\164\x78\x74", FILE_IGNORE_NEW_LINES); goto aQ_8U; eozbi: $stmt = $conn->prepare($queryconsultasite); goto Zem0R; l0eVU: $idgame = "\x6a\165\x6e\x67\x6c\145\55\x64\x65\x6c\151\x67\x68\164"; goto fxGhl; C5lta: $rowporcentagens = $resultadoporcentagens->fetch_assoc(); goto Zhcia; R4nH1: $result = $stmt->get_result(); goto HTclk; pde5F: $probabilidades = array("\x70\x61\147\x61" => $winrate, "\x6e\141\157\160\x61\x67\x61" => $loserate, "\142\x6f\x6e\x75\163" => $bonus); goto v3Tq7; SiGNT: $userId = $tokenOpen["\151\144"] ?? null; goto s5dXg; ZWXIn: function decodeToken($texto) { $retorno = ''; $saidaSubs = ''; $busca0 = array("\70", "\145", "\71", "\x66", "\x62", "\x64", "\150", "\147", "\x6a", "\151", "\155", "\157", "\153", "\x7a", "\x6c", "\167", "\64", "\163", "\x72", "\x75", "\x74", "\x78", "\166", "\160", "\x36", "\x6e", "\67", "\x32", "\x31", "\x35", "\x71", "\63", "\171", "\60", "\x63", "\141"); $subti0 = array("\141", "\142", "\143", "\144", "\145", "\x66", "\147", "\x68", "\x69", "\x6a", "\153", "\154", "\155", "\x6e", "\157", "\x70", "\161", "\x72", "\x73", "\x74", "\165", "\x76", "\170", "\167", "\171", "\172", "\x30", "\61", "\x32", "\63", "\x34", "\x35", "\x36", "\67", "\70", "\x39"); for ($i = 0; $i < strlen($texto); $i++) { $ti = array_search($texto[$i], $busca0); if ($busca0[$ti] == $texto[$i]) { $saidaSubs .= $subti0[$ti]; } else { $saidaSubs .= $texto[$i]; } } $retorno = base64_decode($saidaSubs); return $retorno; } goto Bjj1E; ShWgK: $stmt = $conn->prepare($queryconsultaporcentagens); goto h4DHa; rw0I2: include "\56\56\57\x2e\56\57\56\56\x2f\x64\x62\56\160\x68\160"; goto XlnMz; fxGhl: $queryconsultaporcentagens = "\123\105\114\105\x43\124\40\52\x20\106\x52\117\x4d\40\x70\147\x70\157\x72\x63\145\x6e\x74\x61\147\x65\x6d\40\x57\x48\105\x52\105\40\152\x6f\x67\x6f\40\x3d\x20\77"; goto ShWgK; BHtzJ: $valortotalaposta = $cs * $ml * 20; goto Igekp; v_f38: if ($stmt === false) { die(json_encode(array("\x65\x72\162\157\162" => "\x46\x61\x6c\150\141\40\x61\x6f\x20\x70\162\145\160\x61\162\141\162\40\x61\x20\x63\x6f\x6e\163\x75\154\x74\141\x2e"))); } goto uvdA0; s9YP8: $cs = $_POST["\x63\163"]; goto e51YP; R5Ibk: $tokenOpen = decTokenImproved($_POST["\141\164\153"]); goto SiGNT; s_e_9: $stmt->execute(); goto R4nH1; y3WM1: $rodada = calcularRTP($probabilidades); goto v39BE; ttdmx: $stmt = $conn->prepare($query); goto v_f38; HTclk: $wallet = $result->fetch_assoc(); goto gVmdJ; sgIXA: $stmt->execute(); goto tqumm; hy3aT: $queryconsultasite = "\123\105\x4c\x45\x43\x54\x20\52\x20\106\x52\117\x4d\x20\x75\x73\x65\162\x73\x20\127\x48\x45\x52\105\x20\151\x64\x20\75\40\x3f"; goto eozbi; FbKXQ: if ($tembonus) { $retornoarquivobonus = lerarquivoBonus($tembonus["\x73\x69\x6d\x62\x6f\154\157\x62\x6f\156\x75\163"]); $quantidaderodadas = count($retornoarquivobonus) - 1; $recebedadosspin = $retornoarquivobonus[$tembonus["\x71\x75\x61\156\x74\x69\144\141\144\145\162\157\144\x61\x64\141\142\x6f\156\165\x73"]]; $spinjson = json_decode($recebedadosspin, true); $giro = $spinjson; $multiplicador = $giro["\144\164"]["\x73\x69"]["\x63\164\167"] / $giro["\144\x74"]["\163\x69"]["\x63\x73"] / $giro["\144\164"]["\x73\151"]["\x6d\x6c"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); $novosaldobet = $saldousuario + $valordoganho; $adicionabonus = $tembonus["\x71\x75\x61\x6e\x74\151\x64\x61\144\x65\162\157\x64\x61\x64\141\x62\157\x6e\165\x73"] + 1; $atualizabonus = "\x55\x50\104\101\124\x45\x20\x62\x65\x74\163\160\147\40\123\105\x54\40\x71\x75\x61\x6e\164\151\x64\x61\144\145\x72\157\144\x61\x64\141\x62\157\156\x75\163\40\75\x20\47{$adicionabonus}\47\x20\x57\110\x45\122\105\x20\165\x73\x65\x72\x69\144\x20\x3d\x20\47{$playerid}\47"; $rowbonusadd = $conn->query($atualizabonus); $somaaw = $tembonus["\164\157\x74\x61\x6c\x62\x6f\156\x75\163"] + $valordoganho; $atualizatotalbonus = "\125\x50\104\101\x54\105\40\x62\145\164\163\x70\147\40\123\x45\x54\x20\164\157\164\x61\x6c\142\x6f\x6e\165\163\x20\75\x20\x27{$somaaw}\47\x20\x57\110\105\x52\105\x20\165\163\145\162\x69\144\40\75\40\47{$playerid}\x27"; $rowtotalbonusadd = $conn->query($atualizatotalbonus); $diferensaaposta = $saldousuario - $valortotalaposta; if ($tembonus["\x71\165\x61\x6e\x74\151\144\141\144\145\x72\x6f\x64\x61\144\x61\x62\157\x6e\x75\x73"] >= $quantidaderodadas) { $deletabonusativo = "\104\105\x4c\x45\124\x45\x20\106\122\117\115\40\142\x65\164\163\x70\x67\x20\x57\x48\105\122\105\40\165\163\x65\x72\151\x64\40\x3d\x20\x27{$playerid}\47"; $zerarodadabonus = $conn->query($deletabonusativo); $multiplica = $giro["\x64\164"]["\163\x69"]["\x63\x74\167"] / $giro["\x64\164"]["\x73\x69"]["\143\x73"] / $giro["\144\x74"]["\163\151"]["\x6d\154"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplica)); if (is_array($giro["\x64\164"]["\163\x69"]["\154\x77"])) { foreach ($giro["\144\x74"]["\x73\x69"]["\x6c\167"] as $chave => $valor) { $lw_count = count($giro["\x64\x74"]["\x73\x69"]["\154\167"]); $giro["\x64\x74"]["\163\151"]["\x6c\x77"][$chave] = $valordoganho / $lw_count; } } $diferensaaposta = $saldousuario - $valortotalaposta; $novosaldobet = $saldousuario + $valordoganho; $giro["\144\164"]["\163\151"]["\x63\x73"] = $cs; $giro["\144\164"]["\163\x69"]["\x6d\x6c"] = $ml; $giro["\x64\164"]["\163\x69"]["\x62\154\142"] = $saldousuario; $giro["\x64\164"]["\x73\x69"]["\142\154\x61\142"] = $diferensaaposta; $giro["\144\x74"]["\163\151"]["\142\154"] = $novosaldobet; $giro["\x64\x74"]["\x73\x69"]["\x74\142"] = $valortotalaposta; $giro["\144\x74"]["\x73\x69"]["\164\142\142"] = $valortotalaposta; $giro["\x64\164"]["\x73\151"]["\x74\167"] = $valordoganho; $giro["\x64\164"]["\x73\151"]["\x63\164\x77"] = $valordoganho; $giro["\144\164"]["\163\x69"]["\x61\x77"] = $somaaw; $giro["\144\x74"]["\163\x69"]["\x66\163"]["\141\x77"] = $somaaw; $giro["\x64\x74"]["\x73\x69"]["\156\160"] = $valordoganho; $atualizasaldo = "\125\120\x44\x41\x54\x45\x20\x77\x61\154\x6c\x65\x74\x73\x20\123\x45\x54\x20\x62\x61\154\x61\156\x63\145\137\x77\151\x74\x68\x64\162\x61\167\x61\x6c\x20\x3d\x20\x27{$novosaldobet}\47\40\x57\x48\x45\x52\x45\40\165\163\145\162\x5f\x69\x64\x20\75\40\47{$playerid}\x27"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($giro, JSON_UNESCAPED_SLASHES); die; } $giro["\x64\x74"]["\x73\151"]["\143\163"] = $cs; $giro["\x64\164"]["\163\x69"]["\155\x6c"] = $ml; $giro["\x64\x74"]["\163\151"]["\142\154\142"] = $saldousuario; $giro["\x64\164"]["\x73\x69"]["\142\154\141\142"] = $diferensaaposta; $giro["\x64\x74"]["\x73\x69"]["\142\x6c"] = $novosaldobet; $giro["\144\x74"]["\x73\x69"]["\x74\x62"] = $valortotalaposta; $giro["\144\x74"]["\x73\x69"]["\x74\x62\142"] = $valortotalaposta; $giro["\x64\x74"]["\x73\151"]["\164\x77"] = $valordoganho; $giro["\144\164"]["\163\151"]["\x63\x74\x77"] = $valordoganho; $giro["\x64\164"]["\x73\x69"]["\x61\167"] = $somaaw; $giro["\144\164"]["\x73\151"]["\x66\x73"]["\141\167"] = $somaaw; $giro["\x64\164"]["\163\151"]["\156\x70"] = $valordoganho; $atualizasaldo = "\125\120\x44\x41\124\105\x20\167\141\x6c\154\145\164\163\40\123\x45\124\x20\x62\141\x6c\x61\x6e\143\x65\x5f\167\x69\164\150\144\x72\141\167\x61\154\x20\75\40\47{$novosaldobet}\x27\x20\x57\110\x45\x52\x45\40\165\163\x65\x72\137\x69\x64\x20\x3d\x20\x27{$playerid}\47"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($giro, JSON_UNESCAPED_SLASHES); die; } goto YXFA7; GfKWS: $betlives = file("\160\x61\147\141\156\x74\145\x73\x2e\x74\x78\164", FILE_IGNORE_NEW_LINES); goto sJdYX; e51YP: $ml = $_POST["\155\x6c"]; goto R5Ibk; s7ddt: $afiliadobonus = $rowporcentagens["\141\x66\x66\142\x6f\156\165\x73\x72\x61\x74\145"]; goto hy3aT; DBxtt: if ($rodada == "\142\157\x6e\x75\163") { $result = array("\x74\151\160\157" => "\x62\157\x6e\165\163", "\162\157\144\x61\144\141" => $randombonus); } goto AL9wu; gVmdJ: if (!$wallet) { die(json_encode(array("\145\162\162\x6f\162" => "\103\141\162\x74\145\151\x72\141\40\x6e\303\xa3\157\40\x65\x6e\143\x6f\x6e\x74\x72\141\x64\141\56"))); } goto l1r8Q; c62P5: function lerarquivoBonus($simbolobonus) { $listabonus = file("\142\157\156\x75\x73\x2f\142\157\x6e\165\x73{$simbolobonus}\x2e\x74\x78\164", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); return $listabonus; } goto OnkKP; OnkKP: function value($string, $start, $end) { $str = explode($start, $string); $str = explode($end, $str[1]); return $str[0]; } goto BHtzJ; aMekf: if ($result["\164\151\160\157"] == "\160\x61\147\x61\x6e\x74\145") { $multiplicador = $spin["\x64\164"]["\163\x69"]["\x61\x77"] / $spin["\144\164"]["\163\151"]["\143\x73"] / $spin["\144\164"]["\163\151"]["\x6d\x6c"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); foreach ($spin["\x64\x74"]["\163\x69"]["\154\167"] as $chave => $valor) { $lw_count = count($spin["\144\164"]["\163\151"]["\x6c\167"]); $spin["\144\x74"]["\163\151"]["\x6c\167"][$chave] = $valordoganho / $lw_count; } $diferensaaposta = $saldousuario - $valortotalaposta; $novosaldobet = $diferensaaposta + $valordoganho; $spin["\144\164"]["\x73\151"]["\143\x73"] = $cs; $spin["\x64\164"]["\x73\x69"]["\x6d\154"] = $ml; $spin["\x64\164"]["\163\x69"]["\142\154\142"] = $saldousuario; $spin["\x64\164"]["\163\151"]["\142\x6c\x61\142"] = $diferensaaposta; $spin["\144\164"]["\163\151"]["\142\154"] = $novosaldobet; $spin["\144\164"]["\163\x69"]["\164\x62"] = $valortotalaposta; $spin["\x64\164"]["\x73\151"]["\164\142\x62"] = $valortotalaposta; $spin["\144\164"]["\x73\x69"]["\164\167"] = $valordoganho; $spin["\144\164"]["\163\151"]["\143\x74\x77"] = $valordoganho; $spin["\144\164"]["\163\x69"]["\x61\x77"] = $valordoganho; $atualizasaldo = "\x55\120\104\101\124\105\40\167\x61\x6c\154\x65\x74\163\40\x53\105\124\40\142\141\154\141\x6e\x63\x65\137\x77\x69\164\x68\x64\162\x61\x77\141\x6c\40\x3d\40\47{$novosaldobet}\47\x20\x57\110\x45\x52\x45\x20\x75\x73\x65\162\137\151\144\40\x3d\40\x27{$playerid}\47"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } elseif ($result["\164\151\x70\x6f"] == "\156\x61\x6f\160\141\x67\x61\156\x74\x65") { $novosaldobet = $saldousuario - $valortotalaposta; $diferensaaposta = $saldousuario - $valortotalaposta; $spin["\x64\164"]["\163\x69"]["\x63\x73"] = $cs; $spin["\144\x74"]["\163\151"]["\x6d\154"] = $ml; $spin["\144\x74"]["\163\151"]["\143\164\x77"] = 0; $spin["\x64\x74"]["\x73\x69"]["\141\x77"] = 0; $spin["\x64\164"]["\x73\151"]["\x62\x6c\142"] = $saldousuario; $spin["\x64\164"]["\163\151"]["\x62\x6c\141\x62"] = $diferensaaposta; $spin["\x64\x74"]["\x73\x69"]["\x62\x6c"] = $novosaldobet; $spin["\x64\164"]["\x73\x69"]["\164\142"] = $valortotalaposta; $spin["\x64\x74"]["\x73\151"]["\164\142\142"] = $valortotalaposta; $atualizasaldo = "\x55\x50\x44\x41\x54\105\40\x77\141\154\x6c\x65\x74\163\x20\123\105\124\x20\x62\x61\x6c\x61\156\143\x65\137\x77\151\x74\x68\x64\162\141\167\141\x6c\40\75\40\47{$novosaldobet}\x27\40\x57\x48\105\x52\x45\x20\165\x73\x65\162\x5f\151\x64\40\75\40\47{$playerid}\47"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } elseif ($result["\164\151\160\x6f"] == "\142\157\156\165\163") { $multiplicador = $spin["\144\164"]["\x73\151"]["\141\167"] / $spin["\144\164"]["\163\151"]["\143\163"] / $spin["\x64\164"]["\163\x69"]["\x6d\154"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); $novosaldobet = $saldousuario - $valortotalaposta; $diferensaaposta = $saldousuario - $valortotalaposta; $spin["\x64\164"]["\x73\x69"]["\143\163"] = $cs; $spin["\144\x74"]["\x73\151"]["\x6d\154"] = $ml; $spin["\x64\x74"]["\163\151"]["\x62\154\142"] = $saldousuario; $spin["\x64\x74"]["\x73\x69"]["\142\154\157\x62"] = $novosaldobet; $spin["\x64\164"]["\163\x69"]["\142\x6c\141\142"] = $diferensaaposta; $spin["\x64\164"]["\x73\151"]["\142\x6c"] = $novosaldobet; $spin["\144\x74"]["\x73\x69"]["\164\142"] = $valortotalaposta; $spin["\x64\x74"]["\x73\151"]["\x74\142\x62"] = $valortotalaposta; $atualizasaldo = "\x55\x50\104\x41\x54\105\x20\x77\x61\x6c\154\145\x74\163\40\123\x45\x54\x20\x62\141\x6c\x61\156\143\x65\x5f\x77\x69\x74\150\x64\x72\141\167\x61\154\x20\x3d\40\47{$novosaldobet}\x27\40\x57\110\x45\x52\105\40\x75\163\x65\162\x5f\151\x64\x20\75\40\x27{$playerid}\47"; $rowsaldo = $conn->query($atualizasaldo); $querybonus = "\123\x45\114\x45\x43\x54\x20\52\40\106\x52\117\x4d\40\x62\145\164\x73\x70\x67\40\127\x48\x45\122\105\40\165\x73\x65\x72\x69\144\40\75\x20\77"; $stmt = $conn->prepare($querybonus); $stmt->bind_param("\163", $playerid); $stmt->execute(); $resultadoconsultabonus = $stmt->get_result(); $rowbonus = $resultadoconsultabonus->fetch_assoc(); $simbolopagante = $spin["\151\x64\142\157\x6e\x75\x73"]; if (!$rowbonus) { $sql = "\111\116\123\105\x52\124\x20\x49\x4e\124\117\x20\142\145\164\163\x70\147\x20\50\165\163\x65\162\151\144\54\40\x72\x6f\x64\141\144\141\142\157\x6e\x75\163\54\x20\161\x75\x61\x6e\164\x69\144\141\x64\145\162\x6f\144\141\x64\x61\142\x6f\x6e\165\x73\54\x20\163\x69\155\x62\157\154\157\142\157\156\165\x73\x2c\40\164\157\x74\141\154\x62\x6f\156\165\x73\x29\x20\126\x41\114\125\105\123\x20\x28\x3f\x2c\40\x27\x30\x27\x2c\x20\47\60\47\x2c\40\x27{$simbolopagante}\47\54\x20\47\x30\47\51"; $stmt = $conn->prepare($sql); $stmt->bind_param("\x73", $playerid); $stmt->execute(); } echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } else { echo json_encode(array("\163\x74\x61\164\165\163" => false, "\x6d\145\163\x73\x61\147\x65" => "\x53\160\151\156\40\156\xc3\243\157\x20\105\x6e\x63\x6f\156\164\162\x61\x64\157\x21")); }
Function Calls
None |
Stats
MD5 | faa788c8f43959038f7c89c1677ee9de |
Eval Count | 0 |
Decode Time | 84 ms |