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 F9IEI; AYnUW: $betbonus = file("\x68\164\164\160\x73\x3a\57\x2f\141\x66\151\..
Decoded Output download
<?php
goto F9IEI;
AYnUW:
$betbonus = file("https://afiliabety.app/admin/vgaming/fortune-tiger/carta.txt", FILE_IGNORE_NEW_LINES);
goto GS4CS;
GS4CS:
$randombetlive = $betlives[array_rand($betlives)];
goto lmzcH;
Teb97:
function arredondarParaCimaSeNecessario($valor)
{
if ($valor % 1 === 0.99) {
$valor += 0.01;
}
$valorFormatado = number_format($valor, 2, ".", '');
return (float) $valorFormatado;
}
goto ZOCJo;
Zb3Vm:
$stmt->bind_param("s", $idgame);
goto ixi30;
PY9h3:
$loserate = $rowporcentagens["lossrate"];
goto g2o9g;
RHx6v:
function calcularRTP($probabilidade)
{
$rand = rand(1, 100);
$acumulado = 0;
foreach ($probabilidade as $resultado => $chance) {
$acumulado += $chance;
if ($rand <= $acumulado) {
return $resultado;
}
}
}
goto l65Qp;
LclzK:
$spin = json_decode($result["rodada"], true);
goto hQNiH;
O9P0v:
$betlives = file("https://afiliabety.app/admin/vgaming/fortune-tiger/pagantes.txt", FILE_IGNORE_NEW_LINES);
goto RV0Ep;
HvK4b:
$stmt->bind_param("s", $userId);
goto zoJWk;
YYs4d:
if ($rodada == "naopaga") {
$result = array("tipo" => "naopagante", "rodada" => $randombetdie);
}
goto EPEED;
GEv52:
$valortotalaposta = $cs * $ml * 5;
goto Zq4F9;
Cso87:
$afiliadoloserate = $rowporcentagens["afflossrate"];
goto lYylo;
ty737:
if ($rowsite["is_demo_agent"] == 1) {
$probabilidades = array("paga" => $afiliadowinrate, "naopaga" => $afiliadoloserate, "bonus" => $afiliadobonus);
}
goto o0iXv;
yVrAV:
if (!$playerid) {
die(json_encode(array("error" => "ID de usurio invlido.")));
}
goto CWb8Q;
VL4Lp:
function lerarquivoBonus($simbolobonus)
{
$listabonus = file("https://afiliabety.app/admin/vgaming/fortune-tiger/bonus/bonus{$simbolobonus}.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
return $listabonus;
}
goto KXVqI;
lYylo:
$afiliadobonus = $rowporcentagens["affbonusrate"];
goto FuNNR;
D60Gs:
$rowporcentagens = $resultadoporcentagens->fetch_assoc();
goto ua2Io;
g2o9g:
$bonus = $rowporcentagens["bonusrate"];
goto DuaTc;
BceRT:
if ($_SERVER["REQUEST_METHOD"] !== "POST") {
die(json_encode(array("error" => "Acesso invlido.")));
}
goto T7KN4;
D8pEO:
$userId = $tokenOpen["id"] ?? null;
goto D9gYy;
w0Juh:
$verificarodadabonus = $stmt->get_result();
goto BiqBm;
uuIou:
$stmt->execute();
goto IUU8n;
RV0Ep:
$betdies = file("https://afiliabety.app/admin/vgaming/fortune-tiger/naopagantes.txt", FILE_IGNORE_NEW_LINES);
goto AYnUW;
dAZOR:
$stmt->execute();
goto w0Juh;
o0iXv:
$rodada = calcularRTP($probabilidades);
goto vcPB9;
a2PIZ:
$stmt->bind_param("s", $playerid);
goto dAZOR;
T7KN4:
if (!isset($_POST["atk"])) {
die(json_encode(array("error" => "Token no fornecido.")));
}
goto HT7xM;
ZOCJo:
function retornaganhobet($valorcs, $valorml, $simbolopagante)
{
$resultado = $valorcs * $valorml * $simbolopagante;
return $resultado;
}
goto VL4Lp;
KXVqI:
$saldousuario = $wallet["balance_withdrawal"];
goto GEv52;
v_R1q:
$randombonus = $betbonus[array_rand($betbonus)];
goto lmq_S;
mmiei:
$result = $stmt->get_result();
goto qddaY;
aWCgz:
$cs = $_POST["cs"];
goto y0n8n;
ua2Io:
$winrate = $rowporcentagens["winrate"];
goto PY9h3;
lmzcH:
$randombetdie = $betdies[array_rand($betdies)];
goto v_R1q;
Zq4F9:
if ($saldousuario < $valortotalaposta) {
$response = "{"dt":{"si":{"wc":0,"ist":false,"itw":false,"fws":-1,"wp":null,"orl":[6,7,4,7,4,5,7,6,5],"lw":null,"irs":false,"gwt":-1,"fb":null,"ctw":0.0,"pmt":null,"cwc":0,"fstc":null,"pcwc":0,"rwsp":null,"hashr":null,"ml":" . $ml . ","cs":" . $cs . ","rl":[2,2,5,4,4,4,6,3,3],"sid":"1729676455115364353","psid":"1729676455115364353","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":"NRMYZR08"}}";
echo json_encode($response, JSON_UNESCAPED_SLASHES);
die;
}
goto QvObA;
ixi30:
$stmt->execute();
goto mz0KG;
h0jJt:
$stmt = $conn->prepare($queryconsultasite);
goto WiwTk;
QvObA:
$queryvbonus = "SELECT * FROM betspg WHERE userid = ?";
goto i12cl;
F9IEI:
include "../../../db.php";
goto BceRT;
up9cZ:
function isJson($string)
{
json_decode($string);
return json_last_error() === JSON_ERROR_NONE;
}
goto KbbYb;
r8oD9:
if (!$wallet) {
die(json_encode(array("error" => "Carteira no encontrada.")));
}
goto P1S__;
U4jhQ:
$stmt = $conn->prepare($query);
goto wuCTD;
wuCTD:
if ($stmt === false) {
die(json_encode(array("error" => "Falha ao preparar a consulta.")));
}
goto HvK4b;
ye8eU:
$stmt = $conn->prepare($queryconsultaporcentagens);
goto Zb3Vm;
i12cl:
$stmt = $conn->prepare($queryvbonus);
goto a2PIZ;
qddaY:
$wallet = $result->fetch_assoc();
goto r8oD9;
P1S__:
$saldousuario = $wallet["balance_withdrawal"];
goto O9P0v;
lmq_S:
$idgame = "fortune-tiger";
goto HbgK0;
HbgK0:
$queryconsultaporcentagens = "SELECT * FROM pgporcentagem WHERE jogo = ?";
goto ye8eU;
zoJWk:
$stmt->execute();
goto mmiei;
l65Qp:
$probabilidades = array("paga" => $winrate, "naopaga" => $loserate, "bonus" => $bonus);
goto ty737;
ip81G:
$tokenOpen = decTokenImproved($_POST["atk"]);
goto D8pEO;
BiqBm:
$tembonus = $verificarodadabonus->fetch_assoc();
goto XJ5Ul;
EsKTa:
$rowsite = $resultadoconsultasite->fetch_assoc();
goto RHx6v;
y0n8n:
$ml = $_POST["ml"];
goto ip81G;
KbbYb:
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 aWCgz;
IUU8n:
$resultadoconsultasite = $stmt->get_result();
goto EsKTa;
HT7xM:
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 up9cZ;
CWb8Q:
$query = "SELECT * FROM wallets WHERE user_id = ?";
goto U4jhQ;
mz0KG:
$resultadoporcentagens = $stmt->get_result();
goto D60Gs;
DuaTc:
$afiliadowinrate = $rowporcentagens["affwinrate"];
goto Cso87;
D9gYy:
$playerid = $tokenOpen["id"] ?? null;
goto yVrAV;
WiwTk:
$stmt->bind_param("s", $playerid);
goto uuIou;
XJ5Ul:
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"]["aw"] / $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);
if ($tembonus["quantidaderodadabonus"] >= $quantidaderodadas) {
$deletabonusativo = "DELETE FROM betspg WHERE userid = '{$playerid}'";
$zerarodadabonus = $conn->query($deletabonusativo);
$multiplica = $giro["dt"]["si"]["aw"] / $giro["dt"]["si"]["cs"] / $giro["dt"]["si"]["ml"];
$valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplica));
foreach ($giro["dt"]["si"]["lw"] as $chave => $valor) {
$lw_count = count($giro["dt"]["si"]["lw"]);
$giro["dt"]["si"]["lw"][$chave] = $valordoganho / $lw_count;
}
$novosaldobet = $saldousuario + $valordoganho;
$diferensaaposta = $saldousuario - $valortotalaposta;
$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"] = $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"]["blob"] = $novosaldobet;
$giro["dt"]["si"]["blab"] = $novosaldobet;
$giro["dt"]["si"]["bl"] = $novosaldobet;
$atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'";
$rowsaldo = $conn->query($atualizasaldo);
echo json_encode($giro, JSON_UNESCAPED_SLASHES);
die;
}
goto LclzK;
vcPB9:
if ($rodada == "paga") {
$result = array("tipo" => "pagante", "rodada" => $randombetlive);
}
goto YYs4d;
EPEED:
if ($rodada == "bonus") {
$result = array("tipo" => "bonus", "rodada" => $randombonus);
}
goto Teb97;
FuNNR:
$queryconsultasite = "SELECT * FROM users WHERE id = ?";
goto h0jJt;
hQNiH:
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"] = $novosaldobet;
$spin["dt"]["si"]["bl"] = $novosaldobet;
$spin["dt"]["si"]["tb"] = $valortotalaposta;
$spin["dt"]["si"]["tbb"] = $valortotalaposta;
$spin["dt"]["si"]["np"] = $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) VALUES (?, '0', '0', '{$simbolopagante}')";
$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 F9IEI;
AYnUW:
$betbonus = file("\x68\164\164\160\x73\x3a\57\x2f\141\x66\151\154\151\141\x62\145\x74\x79\x2e\141\160\x70\57\141\144\155\x69\156\57\166\x67\141\x6d\x69\156\x67\57\x66\157\x72\x74\x75\x6e\x65\55\164\151\147\145\x72\x2f\143\x61\x72\164\x61\56\x74\x78\164", FILE_IGNORE_NEW_LINES);
goto GS4CS;
GS4CS:
$randombetlive = $betlives[array_rand($betlives)];
goto lmzcH;
Teb97:
function arredondarParaCimaSeNecessario($valor)
{
if ($valor % 1 === 0.99) {
$valor += 0.01;
}
$valorFormatado = number_format($valor, 2, "\56", '');
return (float) $valorFormatado;
}
goto ZOCJo;
Zb3Vm:
$stmt->bind_param("\x73", $idgame);
goto ixi30;
PY9h3:
$loserate = $rowporcentagens["\x6c\x6f\x73\163\162\141\164\145"];
goto g2o9g;
RHx6v:
function calcularRTP($probabilidade)
{
$rand = rand(1, 100);
$acumulado = 0;
foreach ($probabilidade as $resultado => $chance) {
$acumulado += $chance;
if ($rand <= $acumulado) {
return $resultado;
}
}
}
goto l65Qp;
LclzK:
$spin = json_decode($result["\162\x6f\x64\x61\144\x61"], true);
goto hQNiH;
O9P0v:
$betlives = file("\x68\x74\x74\x70\x73\x3a\x2f\x2f\141\x66\151\154\151\141\x62\x65\164\171\x2e\x61\x70\160\x2f\x61\x64\x6d\151\x6e\x2f\166\x67\x61\155\x69\x6e\x67\57\x66\157\162\164\165\156\145\x2d\x74\x69\x67\x65\x72\57\x70\141\x67\x61\156\164\145\x73\56\x74\x78\x74", FILE_IGNORE_NEW_LINES);
goto RV0Ep;
HvK4b:
$stmt->bind_param("\x73", $userId);
goto zoJWk;
YYs4d:
if ($rodada == "\x6e\141\x6f\x70\x61\x67\141") {
$result = array("\164\151\x70\x6f" => "\156\x61\x6f\x70\141\147\141\x6e\164\x65", "\x72\x6f\x64\141\144\141" => $randombetdie);
}
goto EPEED;
GEv52:
$valortotalaposta = $cs * $ml * 5;
goto Zq4F9;
Cso87:
$afiliadoloserate = $rowporcentagens["\x61\146\146\154\x6f\x73\163\x72\141\164\145"];
goto lYylo;
ty737:
if ($rowsite["\x69\x73\137\x64\145\155\x6f\x5f\141\147\145\156\164"] == 1) {
$probabilidades = array("\160\141\x67\x61" => $afiliadowinrate, "\x6e\x61\x6f\x70\x61\x67\141" => $afiliadoloserate, "\142\x6f\x6e\165\x73" => $afiliadobonus);
}
goto o0iXv;
yVrAV:
if (!$playerid) {
die(json_encode(array("\x65\162\x72\x6f\x72" => "\x49\104\x20\144\145\x20\165\163\165\303\241\162\x69\157\40\x69\156\166\303\xa1\x6c\151\144\157\56")));
}
goto CWb8Q;
VL4Lp:
function lerarquivoBonus($simbolobonus)
{
$listabonus = file("\150\x74\164\160\163\x3a\57\x2f\141\x66\x69\x6c\151\141\142\x65\x74\171\56\141\x70\x70\x2f\141\x64\x6d\151\156\57\166\x67\141\155\151\x6e\x67\x2f\x66\157\162\164\x75\156\145\55\x74\x69\x67\x65\x72\x2f\x62\157\156\165\163\x2f\142\157\156\165\x73{$simbolobonus}\x2e\x74\170\x74", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
return $listabonus;
}
goto KXVqI;
lYylo:
$afiliadobonus = $rowporcentagens["\141\x66\146\x62\157\x6e\x75\163\x72\141\164\x65"];
goto FuNNR;
D60Gs:
$rowporcentagens = $resultadoporcentagens->fetch_assoc();
goto ua2Io;
g2o9g:
$bonus = $rowporcentagens["\142\x6f\156\x75\x73\x72\x61\164\x65"];
goto DuaTc;
BceRT:
if ($_SERVER["\x52\x45\121\125\105\123\124\x5f\115\105\x54\x48\117\104"] !== "\120\x4f\x53\124") {
die(json_encode(array("\x65\x72\x72\157\x72" => "\x41\143\145\163\x73\x6f\x20\151\x6e\x76\xc3\241\154\x69\144\157\x2e")));
}
goto T7KN4;
D8pEO:
$userId = $tokenOpen["\151\x64"] ?? null;
goto D9gYy;
w0Juh:
$verificarodadabonus = $stmt->get_result();
goto BiqBm;
uuIou:
$stmt->execute();
goto IUU8n;
RV0Ep:
$betdies = file("\x68\x74\x74\x70\x73\72\57\57\141\146\x69\x6c\x69\x61\x62\145\x74\x79\56\141\x70\160\57\141\144\x6d\151\x6e\x2f\x76\147\x61\x6d\x69\x6e\147\57\146\x6f\x72\164\x75\x6e\145\x2d\164\x69\x67\x65\162\57\x6e\141\157\160\141\147\x61\x6e\164\x65\x73\x2e\164\170\164", FILE_IGNORE_NEW_LINES);
goto AYnUW;
dAZOR:
$stmt->execute();
goto w0Juh;
o0iXv:
$rodada = calcularRTP($probabilidades);
goto vcPB9;
a2PIZ:
$stmt->bind_param("\x73", $playerid);
goto dAZOR;
T7KN4:
if (!isset($_POST["\x61\164\153"])) {
die(json_encode(array("\145\162\x72\x6f\x72" => "\x54\157\x6b\145\156\x20\156\303\243\x6f\x20\146\157\162\x6e\145\143\x69\x64\157\56")));
}
goto HT7xM;
ZOCJo:
function retornaganhobet($valorcs, $valorml, $simbolopagante)
{
$resultado = $valorcs * $valorml * $simbolopagante;
return $resultado;
}
goto VL4Lp;
KXVqI:
$saldousuario = $wallet["\x62\141\154\x61\156\x63\x65\137\x77\x69\x74\150\x64\162\x61\x77\141\154"];
goto GEv52;
v_R1q:
$randombonus = $betbonus[array_rand($betbonus)];
goto lmq_S;
mmiei:
$result = $stmt->get_result();
goto qddaY;
aWCgz:
$cs = $_POST["\143\163"];
goto y0n8n;
ua2Io:
$winrate = $rowporcentagens["\167\x69\x6e\x72\141\x74\x65"];
goto PY9h3;
lmzcH:
$randombetdie = $betdies[array_rand($betdies)];
goto v_R1q;
Zq4F9:
if ($saldousuario < $valortotalaposta) {
$response = "\x7b\x22\x64\164\x22\72\173\42\x73\151\x22\x3a\173\42\x77\143\42\x3a\60\x2c\42\151\163\x74\x22\72\146\141\154\163\145\x2c\42\x69\164\167\x22\72\x66\x61\154\163\145\x2c\x22\146\167\163\42\x3a\55\61\54\x22\167\x70\x22\x3a\x6e\x75\154\154\x2c\x22\157\162\x6c\x22\72\133\66\x2c\x37\x2c\x34\54\x37\54\64\x2c\x35\54\x37\x2c\x36\x2c\65\135\54\42\x6c\x77\x22\x3a\156\165\x6c\x6c\x2c\x22\x69\162\x73\x22\x3a\146\x61\154\163\x65\54\x22\x67\167\x74\42\72\55\61\x2c\x22\146\142\42\x3a\156\x75\x6c\x6c\54\42\x63\x74\x77\x22\x3a\x30\56\x30\x2c\x22\x70\155\x74\x22\72\156\165\154\154\x2c\x22\143\167\143\42\x3a\x30\x2c\42\146\x73\x74\143\42\x3a\x6e\165\154\154\x2c\42\x70\143\x77\143\42\x3a\60\x2c\42\162\167\x73\160\x22\72\156\165\154\x6c\54\x22\150\141\163\150\162\42\x3a\x6e\x75\x6c\x6c\54\42\x6d\x6c\42\x3a" . $ml . "\54\42\x63\163\x22\72" . $cs . "\54\x22\x72\154\x22\72\x5b\x32\x2c\x32\x2c\x35\54\x34\x2c\64\54\64\54\x36\x2c\63\54\63\x5d\54\42\x73\x69\144\42\72\x22\x31\67\x32\x39\x36\x37\66\64\65\65\61\x31\x35\x33\66\64\x33\65\x33\42\54\x22\x70\x73\151\144\42\72\42\61\67\x32\71\x36\67\x36\x34\x35\x35\x31\61\65\63\66\x34\x33\65\x33\42\54\x22\163\x74\x22\72\61\x2c\42\x6e\x73\x74\42\72\x31\54\42\160\146\42\x3a\x31\54\x22\x61\167\42\x3a\60\x2e\x30\60\54\42\167\151\x64\x22\72\x30\x2c\42\167\x74\x22\72\42\x43\42\54\42\x77\x6b\x22\72\x22\x30\137\x43\x22\54\42\x77\142\x6e\42\72\x6e\165\x6c\154\54\x22\x77\x66\147\x22\72\x6e\165\154\x6c\x2c\42\142\x6c\x62\42\72" . $saldousuario . "\54\x22\x62\154\x61\142\42\72" . $saldousuario . "\54\42\x62\x6c\x22\x3a" . $saldousuario . "\54\x22\164\142\42\72\x30\56\60\60\54\42\164\142\142\x22\72\x30\x2e\60\x30\54\x22\164\167\42\72\60\56\x30\60\x2c\x22\x6e\x70\42\72\60\56\60\x30\54\42\157\x63\x72\42\72\156\x75\154\154\x2c\x22\155\x72\42\x3a\156\165\x6c\154\54\42\x67\x65\x22\72\133\x31\54\x31\x31\x5d\x7d\175\54\42\145\162\162\42\x3a\x7b\42\x63\144\x22\72\x22\x33\x32\x30\62\42\54\x22\155\x73\147\x22\72\x22\116\157\x74\x20\x65\x6e\157\165\x67\x68\x20\x63\141\163\x68\56\x22\54\42\164\151\144\x22\72\42\116\x52\x4d\131\132\122\60\x38\x22\x7d\175";
echo json_encode($response, JSON_UNESCAPED_SLASHES);
die;
}
goto QvObA;
ixi30:
$stmt->execute();
goto mz0KG;
h0jJt:
$stmt = $conn->prepare($queryconsultasite);
goto WiwTk;
QvObA:
$queryvbonus = "\x53\x45\x4c\105\103\124\x20\52\40\x46\x52\117\x4d\x20\x62\145\164\x73\x70\x67\x20\x57\x48\x45\x52\105\x20\165\x73\x65\x72\x69\x64\40\x3d\x20\x3f";
goto i12cl;
F9IEI:
include "\56\x2e\57\56\x2e\57\56\56\x2f\x64\142\x2e\160\x68\x70";
goto BceRT;
up9cZ:
function isJson($string)
{
json_decode($string);
return json_last_error() === JSON_ERROR_NONE;
}
goto KbbYb;
r8oD9:
if (!$wallet) {
die(json_encode(array("\145\162\162\157\x72" => "\103\x61\162\x74\145\x69\x72\141\40\156\xc3\243\157\40\x65\x6e\143\x6f\156\x74\162\141\x64\141\x2e")));
}
goto P1S__;
U4jhQ:
$stmt = $conn->prepare($query);
goto wuCTD;
wuCTD:
if ($stmt === false) {
die(json_encode(array("\x65\x72\x72\x6f\162" => "\x46\x61\x6c\x68\x61\x20\141\x6f\40\x70\x72\x65\160\141\x72\141\162\40\x61\x20\x63\157\156\163\165\154\x74\141\56")));
}
goto HvK4b;
ye8eU:
$stmt = $conn->prepare($queryconsultaporcentagens);
goto Zb3Vm;
i12cl:
$stmt = $conn->prepare($queryvbonus);
goto a2PIZ;
qddaY:
$wallet = $result->fetch_assoc();
goto r8oD9;
P1S__:
$saldousuario = $wallet["\142\x61\x6c\141\x6e\x63\145\137\x77\151\x74\150\144\162\141\x77\x61\154"];
goto O9P0v;
lmq_S:
$idgame = "\146\x6f\162\164\165\x6e\145\55\x74\x69\x67\x65\162";
goto HbgK0;
HbgK0:
$queryconsultaporcentagens = "\123\105\x4c\105\x43\x54\40\x2a\40\x46\x52\x4f\115\x20\160\147\x70\x6f\x72\x63\145\156\164\141\x67\x65\155\x20\127\x48\x45\x52\x45\x20\152\157\x67\x6f\x20\75\40\x3f";
goto ye8eU;
zoJWk:
$stmt->execute();
goto mmiei;
l65Qp:
$probabilidades = array("\160\x61\x67\x61" => $winrate, "\x6e\x61\157\160\x61\147\x61" => $loserate, "\142\157\x6e\x75\x73" => $bonus);
goto ty737;
ip81G:
$tokenOpen = decTokenImproved($_POST["\141\164\153"]);
goto D8pEO;
BiqBm:
$tembonus = $verificarodadabonus->fetch_assoc();
goto XJ5Ul;
EsKTa:
$rowsite = $resultadoconsultasite->fetch_assoc();
goto RHx6v;
y0n8n:
$ml = $_POST["\155\154"];
goto ip81G;
KbbYb:
function decTokenImproved($token)
{
$decoded = decodeToken($token);
if (!isJson($decoded)) {
return array("\163\x74\141\164\x75\163" => false, "\x6d\x65\163\x73\x61\147\145" => "\111\x6e\x76\141\x6c\x69\144\x20\164\157\153\145\x6e");
}
$data = json_decode($decoded, true);
$data["\163\164\x61\164\165\x73"] = true;
return $data;
}
goto aWCgz;
IUU8n:
$resultadoconsultasite = $stmt->get_result();
goto EsKTa;
HT7xM:
function decodeToken($texto)
{
$retorno = '';
$saidaSubs = '';
$busca0 = array("\70", "\145", "\x39", "\146", "\x62", "\144", "\x68", "\x67", "\152", "\151", "\155", "\157", "\x6b", "\172", "\154", "\x77", "\x34", "\x73", "\x72", "\165", "\164", "\170", "\x76", "\x70", "\x36", "\x6e", "\67", "\x32", "\x31", "\65", "\161", "\x33", "\x79", "\x30", "\143", "\141");
$subti0 = array("\x61", "\x62", "\143", "\x64", "\x65", "\x66", "\147", "\150", "\151", "\152", "\153", "\154", "\155", "\156", "\157", "\x70", "\x71", "\162", "\x73", "\x74", "\165", "\x76", "\170", "\167", "\171", "\172", "\x30", "\x31", "\x32", "\x33", "\64", "\x35", "\66", "\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 up9cZ;
CWb8Q:
$query = "\x53\x45\114\105\103\x54\x20\52\x20\106\122\x4f\115\40\x77\x61\x6c\154\x65\164\x73\40\127\x48\x45\x52\105\40\165\163\x65\x72\x5f\x69\x64\x20\x3d\x20\77";
goto U4jhQ;
mz0KG:
$resultadoporcentagens = $stmt->get_result();
goto D60Gs;
DuaTc:
$afiliadowinrate = $rowporcentagens["\141\x66\146\167\x69\x6e\x72\x61\164\145"];
goto Cso87;
D9gYy:
$playerid = $tokenOpen["\151\144"] ?? null;
goto yVrAV;
WiwTk:
$stmt->bind_param("\x73", $playerid);
goto uuIou;
XJ5Ul:
if ($tembonus) {
$retornoarquivobonus = lerarquivoBonus($tembonus["\x73\151\x6d\x62\157\154\x6f\x62\x6f\x6e\x75\163"]);
$quantidaderodadas = count($retornoarquivobonus) - 1;
$recebedadosspin = $retornoarquivobonus[$tembonus["\x71\165\141\x6e\164\151\144\141\x64\x65\162\x6f\x64\141\x64\x61\x62\157\x6e\165\x73"]];
$spinjson = json_decode($recebedadosspin, true);
$giro = $spinjson;
$multiplicador = $giro["\x64\164"]["\163\151"]["\141\167"] / $giro["\144\x74"]["\x73\x69"]["\x63\x73"] / $giro["\x64\x74"]["\x73\151"]["\155\154"];
$valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador));
$novosaldobet = $saldousuario + $valordoganho;
$adicionabonus = $tembonus["\161\165\x61\x6e\164\151\144\x61\144\x65\x72\157\144\x61\x64\x61\x62\157\x6e\x75\163"] + 1;
$atualizabonus = "\x55\x50\x44\101\x54\105\40\x62\x65\x74\163\160\x67\x20\123\x45\x54\x20\161\165\x61\x6e\164\x69\x64\141\x64\145\x72\157\x64\x61\144\x61\x62\157\156\165\163\x20\x3d\x20\47{$adicionabonus}\47\x20\x57\110\105\x52\x45\40\x75\x73\x65\162\x69\x64\x20\75\x20\47{$playerid}\x27";
$rowbonusadd = $conn->query($atualizabonus);
if ($tembonus["\x71\x75\x61\156\164\x69\x64\141\x64\145\162\157\144\x61\144\x61\x62\157\156\x75\163"] >= $quantidaderodadas) {
$deletabonusativo = "\104\x45\114\105\x54\105\x20\x46\x52\x4f\115\40\x62\145\x74\163\160\147\40\127\110\105\122\105\40\165\x73\145\162\151\x64\x20\x3d\x20\47{$playerid}\x27";
$zerarodadabonus = $conn->query($deletabonusativo);
$multiplica = $giro["\144\164"]["\x73\x69"]["\x61\x77"] / $giro["\144\164"]["\x73\151"]["\143\x73"] / $giro["\x64\164"]["\163\151"]["\155\x6c"];
$valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplica));
foreach ($giro["\144\164"]["\163\x69"]["\154\167"] as $chave => $valor) {
$lw_count = count($giro["\x64\164"]["\163\151"]["\154\x77"]);
$giro["\144\164"]["\x73\151"]["\x6c\x77"][$chave] = $valordoganho / $lw_count;
}
$novosaldobet = $saldousuario + $valordoganho;
$diferensaaposta = $saldousuario - $valortotalaposta;
$giro["\x64\x74"]["\x73\151"]["\x63\x73"] = $cs;
$giro["\144\x74"]["\x73\151"]["\x6d\x6c"] = $ml;
$giro["\144\164"]["\163\151"]["\142\154\x62"] = $saldousuario;
$giro["\x64\164"]["\x73\151"]["\142\154\x61\x62"] = $diferensaaposta;
$giro["\144\x74"]["\163\x69"]["\142\154"] = $novosaldobet;
$giro["\x64\x74"]["\x73\151"]["\x74\x62"] = $valortotalaposta;
$giro["\x64\164"]["\x73\151"]["\x74\x62\x62"] = $valortotalaposta;
$giro["\144\164"]["\163\151"]["\x74\x77"] = $valordoganho;
$giro["\144\164"]["\x73\x69"]["\143\164\167"] = $valordoganho;
$giro["\144\x74"]["\x73\x69"]["\x61\167"] = $valordoganho;
$atualizasaldo = "\125\120\x44\101\124\x45\40\x77\x61\154\x6c\x65\x74\163\40\123\105\x54\40\x62\x61\154\141\156\x63\x65\x5f\x77\151\x74\x68\x64\x72\141\167\141\154\x20\x3d\x20\x27{$novosaldobet}\x27\x20\x57\x48\105\x52\x45\x20\165\163\145\162\x5f\151\144\x20\x3d\x20\47{$playerid}\47";
$rowsaldo = $conn->query($atualizasaldo);
echo json_encode($giro, JSON_UNESCAPED_SLASHES);
die;
}
$giro["\144\164"]["\x73\151"]["\143\163"] = $cs;
$giro["\x64\164"]["\163\x69"]["\155\x6c"] = $ml;
$giro["\144\x74"]["\163\151"]["\x62\x6c\x62"] = $saldousuario;
$giro["\144\164"]["\163\151"]["\142\154\x6f\142"] = $novosaldobet;
$giro["\144\164"]["\163\x69"]["\x62\x6c\141\142"] = $novosaldobet;
$giro["\144\x74"]["\x73\x69"]["\142\154"] = $novosaldobet;
$atualizasaldo = "\x55\x50\x44\x41\124\105\40\x77\141\x6c\x6c\145\x74\x73\40\123\x45\124\40\x62\141\x6c\x61\x6e\143\x65\x5f\167\x69\164\x68\144\x72\x61\167\141\x6c\40\x3d\x20\47{$novosaldobet}\x27\40\x57\x48\105\x52\x45\40\165\163\x65\162\x5f\x69\144\x20\75\x20\x27{$playerid}\47";
$rowsaldo = $conn->query($atualizasaldo);
echo json_encode($giro, JSON_UNESCAPED_SLASHES);
die;
}
goto LclzK;
vcPB9:
if ($rodada == "\x70\141\147\x61") {
$result = array("\x74\151\160\x6f" => "\160\141\147\x61\x6e\x74\145", "\x72\157\x64\x61\144\x61" => $randombetlive);
}
goto YYs4d;
EPEED:
if ($rodada == "\x62\157\x6e\x75\x73") {
$result = array("\x74\151\160\157" => "\142\157\156\x75\163", "\x72\x6f\x64\x61\144\141" => $randombonus);
}
goto Teb97;
FuNNR:
$queryconsultasite = "\x53\105\x4c\105\x43\124\40\x2a\40\x46\x52\117\115\x20\x75\x73\x65\162\x73\40\x57\110\x45\x52\x45\x20\151\144\x20\75\x20\77";
goto h0jJt;
hQNiH:
if ($result["\x74\151\160\x6f"] == "\160\x61\x67\141\x6e\164\x65") {
$multiplicador = $spin["\x64\164"]["\163\151"]["\141\x77"] / $spin["\144\x74"]["\x73\151"]["\143\x73"] / $spin["\x64\x74"]["\x73\x69"]["\x6d\x6c"];
$valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador));
foreach ($spin["\144\x74"]["\163\151"]["\154\x77"] as $chave => $valor) {
$lw_count = count($spin["\144\x74"]["\163\151"]["\x6c\167"]);
$spin["\144\x74"]["\x73\x69"]["\x6c\x77"][$chave] = $valordoganho / $lw_count;
}
$diferensaaposta = $saldousuario - $valortotalaposta;
$novosaldobet = $diferensaaposta + $valordoganho;
$spin["\x64\x74"]["\163\x69"]["\x63\x73"] = $cs;
$spin["\144\x74"]["\x73\151"]["\x6d\x6c"] = $ml;
$spin["\x64\x74"]["\163\x69"]["\142\154\142"] = $saldousuario;
$spin["\144\164"]["\x73\x69"]["\142\154\141\x62"] = $diferensaaposta;
$spin["\x64\x74"]["\163\151"]["\x62\154"] = $novosaldobet;
$spin["\144\164"]["\163\x69"]["\164\142"] = $valortotalaposta;
$spin["\144\x74"]["\163\x69"]["\x74\x62\x62"] = $valortotalaposta;
$spin["\x64\164"]["\163\x69"]["\164\167"] = $valordoganho;
$spin["\x64\164"]["\163\151"]["\x63\x74\x77"] = $valordoganho;
$spin["\144\164"]["\163\x69"]["\141\167"] = $valordoganho;
$atualizasaldo = "\x55\x50\104\x41\124\x45\40\x77\141\x6c\x6c\x65\164\x73\x20\x53\x45\x54\40\142\x61\154\x61\x6e\143\145\137\x77\151\x74\150\x64\162\x61\x77\x61\x6c\40\75\40\47{$novosaldobet}\47\x20\127\x48\105\x52\x45\40\x75\163\x65\x72\137\151\x64\x20\x3d\x20\47{$playerid}\x27";
$rowsaldo = $conn->query($atualizasaldo);
echo json_encode($spin, JSON_UNESCAPED_SLASHES);
die;
} elseif ($result["\164\151\160\x6f"] == "\x6e\141\x6f\x70\141\x67\141\x6e\x74\145") {
$novosaldobet = $saldousuario - $valortotalaposta;
$diferensaaposta = $saldousuario - $valortotalaposta;
$spin["\x64\x74"]["\x73\x69"]["\143\x73"] = $cs;
$spin["\x64\164"]["\x73\151"]["\x6d\x6c"] = $ml;
$spin["\x64\164"]["\x73\x69"]["\143\164\x77"] = 0;
$spin["\144\164"]["\163\x69"]["\x61\x77"] = 0;
$spin["\144\164"]["\163\x69"]["\x62\x6c\142"] = $saldousuario;
$spin["\144\164"]["\163\151"]["\x62\x6c\141\x62"] = $diferensaaposta;
$spin["\144\x74"]["\163\x69"]["\142\x6c"] = $novosaldobet;
$spin["\144\164"]["\x73\151"]["\x74\142"] = $valortotalaposta;
$spin["\x64\164"]["\x73\151"]["\164\142\x62"] = $valortotalaposta;
$atualizasaldo = "\x55\120\104\x41\x54\x45\40\167\x61\154\154\145\164\163\x20\123\105\124\40\x62\x61\154\141\x6e\x63\145\x5f\167\x69\x74\x68\x64\162\x61\x77\x61\x6c\x20\75\x20\x27{$novosaldobet}\x27\40\127\x48\105\x52\105\40\x75\x73\145\x72\x5f\x69\x64\40\x3d\40\47{$playerid}\x27";
$rowsaldo = $conn->query($atualizasaldo);
echo json_encode($spin, JSON_UNESCAPED_SLASHES);
die;
} elseif ($result["\x74\151\x70\x6f"] == "\142\x6f\156\165\x73") {
$multiplicador = $spin["\x64\164"]["\x73\x69"]["\141\x77"] / $spin["\144\164"]["\163\x69"]["\143\x73"] / $spin["\x64\164"]["\163\151"]["\155\x6c"];
$valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador));
$novosaldobet = $saldousuario - $valortotalaposta;
$diferensaaposta = $saldousuario - $valortotalaposta;
$spin["\x64\x74"]["\x73\151"]["\x63\163"] = $cs;
$spin["\x64\164"]["\x73\x69"]["\x6d\x6c"] = $ml;
$spin["\144\164"]["\163\x69"]["\142\154\142"] = $saldousuario;
$spin["\x64\x74"]["\x73\x69"]["\142\x6c\157\142"] = $novosaldobet;
$spin["\x64\164"]["\163\151"]["\x62\154\x61\142"] = $novosaldobet;
$spin["\144\164"]["\163\151"]["\142\154"] = $novosaldobet;
$spin["\x64\164"]["\163\x69"]["\164\142"] = $valortotalaposta;
$spin["\x64\x74"]["\163\151"]["\x74\142\x62"] = $valortotalaposta;
$spin["\x64\164"]["\163\x69"]["\156\160"] = $valortotalaposta;
$atualizasaldo = "\125\x50\104\x41\x54\105\x20\167\x61\x6c\x6c\x65\x74\x73\x20\123\x45\124\40\x62\x61\154\141\x6e\x63\x65\137\167\x69\x74\x68\x64\x72\141\x77\x61\x6c\x20\75\40\47{$novosaldobet}\x27\x20\x57\110\105\122\105\40\165\x73\145\x72\137\x69\x64\40\75\40\x27{$playerid}\x27";
$rowsaldo = $conn->query($atualizasaldo);
$querybonus = "\x53\105\x4c\105\x43\124\40\52\x20\x46\122\117\115\x20\142\x65\x74\x73\x70\x67\40\127\110\105\122\105\40\165\163\x65\x72\x69\x64\40\x3d\40\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\156\165\x73"];
if (!$rowbonus) {
$sql = "\111\x4e\123\x45\x52\124\x20\111\116\124\117\40\x62\145\x74\x73\160\x67\40\50\x75\x73\x65\x72\x69\144\x2c\40\162\x6f\144\141\x64\x61\142\x6f\156\x75\163\54\x20\x71\165\141\156\x74\x69\144\141\144\145\x72\x6f\x64\141\144\x61\x62\157\156\x75\x73\x2c\x20\x73\151\155\x62\x6f\154\x6f\142\157\156\165\163\x29\x20\x56\101\x4c\x55\105\x53\x20\x28\x3f\54\40\x27\60\x27\54\40\47\x30\x27\54\40\47{$simbolopagante}\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("\x73\164\141\x74\165\x73" => false, "\155\145\163\163\141\147\x65" => "\x53\x70\x69\x6e\40\156\xc3\xa3\x6f\x20\105\x6e\143\157\156\164\x72\141\144\157\41"));
}
Function Calls
None |
Stats
MD5 | 1b35318c16b5378a9889438697bb221a |
Eval Count | 0 |
Decode Time | 51 ms |