Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$('#gameContainer').html('<div id="chart"></div>'); $('#gameContainer').css('width', '1..
Decoded Output download
<?
$('#gameContainer').html('<div id="chart"></div>');
$('#gameContainer').css('width', '1000px');
$('#gameContainer').css('margin', 'auto');
var basebet = 0.001, chance = 2;nextbet = basebet, nbet = nextbet * 10, chance = 2, bethigh = false;
var dps = [], chart, bet = 0, win = 0, winStreak = 0, lose = 0, loseStreak = 0, profit = 0, balance = 0, color, startTime, runTime;
function randomChance(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
function drawChart() {
return new Promise(function (resolve, reject) {
$.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function () {
dps = [{
x: 0,
y: 0
}];
chart = new CanvasJS.Chart('chart', {
theme: 'dark1',
axisX: {
title: 'Bet BOT LuckyGames 2020 - @luckygames.cc'
},
axisY: {
title: 'Profit'
},
title: {
text: 'Rizt'
},
data: [{
type: 'splineArea',
dataPoints: dps
}]
});
chart.render(resolve({ err: 0, msg: 'OK' }));
}).fail(function (error) {
reject({ err: 1, msg: 'ERROR' });
});
});
}
function updateChart() {
dps.push({
x: bet,
y: profit,
color: color
})
if (dps[dps.length - 2]) {
dps[dps.length - 2].lineColor = color;
}
if (dps.length > 150) {
dps.shift();
}
chart.render();
}
function dobet() {
var betAmount = nextbet, prediction, direction;
if (bethigh) {
prediction = 57;
direction = 'over';
}
else {
prediction = 41;
direction = 'under';
}
$.post('https://luckygames.cc/play/', {
game: 'dice',
coin: $('#coin').val(),
betAmount: betAmount,
prediction: prediction,
direction: direction,
clientSeed: $('#clientSeed').val(),
serverSeedHash: $('#serverSeedHash').text(),
hash: user.hash
}).done(function (response) {
var l = JSON.parse(response);
if (l.result) {
bet += 1;
profit += parseFloat(l.profit);
var onTime = new Date().getTime();
runTime = onTime - startTime;
var runSeconds = Math.floor((runTime % (1000 * 60)) / 1000),
runMinutes = Math.floor((runTime % (1000 * 60 * 60)) / (1000 * 60)),
runHours = Math.floor((runTime % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)),
runDays = Math.floor(runTime / (1000 * 60 * 60 * 24)),
runSpeed = parseFloat((bet / runTime) * 1000);
$('#serverSeedHash').text(l.serverSeedHash);
$('#balance').val(l.balance);
if ($('#myBets').hasClass('active')) {
var e = $('#listContainer .table .tbody .tr:first-child');
if (e.hasClass('full')) e.remove(), $('#listContainer .table .tbody').append(l.betHtml);
else {
e.before(l.betHtml);
var t = $('#listContainer .table .tbody .tr').length;
if (50 < t && (t = 40), 40 < t)
for (var o = 0; o < t - 40; o++) $('#listContainer .table .tbody .tr:last-child').remove()
}
}
if (l.gameResult == 'win') {
win += 1;
winStreak += 1;
loseStreak = 0;
color = 'yellow';
randomizeSeed();
}
else {
lose += 1;
loseStreak += 1;
winStreak = 0;
color = 'red';
}
if (l.gameResult == 'win') {nextbet = basebet;if (l.balance >= balance) {
randomChance(41, 57) % 2 == 0 ? bethigh = true : bethigh = false;
nbet = basebet * 10;
}}
else {if (loseStreak >= 2) {nextbet = nextbet * 2.55;}
else {if (loseStreak >= 1) {nextbet = basebet * 2;}
}}
console.clear();
console.log(`Balance: ${l.balance} ${$('#coin').val()}`);
console.log(`Profit: ${profit.toFixed(8)} ${$('#coin').val()}`);
console.log(`Next bet: ${nextbet.toFixed(8)} ${$('#coin').val()}`);
console.log(`Lose strike: ${loseStreak} X lose`);
console.log(`speed: ${runSpeed.toFixed(2)}`);
console.log(`run time: ${runDays}:${runHours}:${runMinutes}:${runSeconds}`);
l.balance > balance ? balance = l.balance : balance = balance;
updateChart();
dobet();
}
else {
dobet();
}
}).fail(function (error) {
dobet();
});
}
async function start() {
drawChart().then(function () {
startTime = new Date();
dobet();
}).catch(function () {
});
}
randomizeSeed(start()); ?>
Did this file decode correctly?
Original Code
$('#gameContainer').html('<div id="chart"></div>');
$('#gameContainer').css('width', '1000px');
$('#gameContainer').css('margin', 'auto');
var basebet = 0.001, chance = 2;nextbet = basebet, nbet = nextbet * 10, chance = 2, bethigh = false;
var dps = [], chart, bet = 0, win = 0, winStreak = 0, lose = 0, loseStreak = 0, profit = 0, balance = 0, color, startTime, runTime;
function randomChance(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
function drawChart() {
return new Promise(function (resolve, reject) {
$.getScript('https://canvasjs.com/assets/script/canvasjs.min.js').done(function () {
dps = [{
x: 0,
y: 0
}];
chart = new CanvasJS.Chart('chart', {
theme: 'dark1',
axisX: {
title: 'Bet BOT LuckyGames 2020 - @luckygames.cc'
},
axisY: {
title: 'Profit'
},
title: {
text: 'Rizt'
},
data: [{
type: 'splineArea',
dataPoints: dps
}]
});
chart.render(resolve({ err: 0, msg: 'OK' }));
}).fail(function (error) {
reject({ err: 1, msg: 'ERROR' });
});
});
}
function updateChart() {
dps.push({
x: bet,
y: profit,
color: color
})
if (dps[dps.length - 2]) {
dps[dps.length - 2].lineColor = color;
}
if (dps.length > 150) {
dps.shift();
}
chart.render();
}
function dobet() {
var betAmount = nextbet, prediction, direction;
if (bethigh) {
prediction = 57;
direction = 'over';
}
else {
prediction = 41;
direction = 'under';
}
$.post('https://luckygames.cc/play/', {
game: 'dice',
coin: $('#coin').val(),
betAmount: betAmount,
prediction: prediction,
direction: direction,
clientSeed: $('#clientSeed').val(),
serverSeedHash: $('#serverSeedHash').text(),
hash: user.hash
}).done(function (response) {
var l = JSON.parse(response);
if (l.result) {
bet += 1;
profit += parseFloat(l.profit);
var onTime = new Date().getTime();
runTime = onTime - startTime;
var runSeconds = Math.floor((runTime % (1000 * 60)) / 1000),
runMinutes = Math.floor((runTime % (1000 * 60 * 60)) / (1000 * 60)),
runHours = Math.floor((runTime % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)),
runDays = Math.floor(runTime / (1000 * 60 * 60 * 24)),
runSpeed = parseFloat((bet / runTime) * 1000);
$('#serverSeedHash').text(l.serverSeedHash);
$('#balance').val(l.balance);
if ($('#myBets').hasClass('active')) {
var e = $('#listContainer .table .tbody .tr:first-child');
if (e.hasClass('full')) e.remove(), $('#listContainer .table .tbody').append(l.betHtml);
else {
e.before(l.betHtml);
var t = $('#listContainer .table .tbody .tr').length;
if (50 < t && (t = 40), 40 < t)
for (var o = 0; o < t - 40; o++) $('#listContainer .table .tbody .tr:last-child').remove()
}
}
if (l.gameResult == 'win') {
win += 1;
winStreak += 1;
loseStreak = 0;
color = 'yellow';
randomizeSeed();
}
else {
lose += 1;
loseStreak += 1;
winStreak = 0;
color = 'red';
}
if (l.gameResult == 'win') {nextbet = basebet;if (l.balance >= balance) {
randomChance(41, 57) % 2 == 0 ? bethigh = true : bethigh = false;
nbet = basebet * 10;
}}
else {if (loseStreak >= 2) {nextbet = nextbet * 2.55;}
else {if (loseStreak >= 1) {nextbet = basebet * 2;}
}}
console.clear();
console.log(`Balance: ${l.balance} ${$('#coin').val()}`);
console.log(`Profit: ${profit.toFixed(8)} ${$('#coin').val()}`);
console.log(`Next bet: ${nextbet.toFixed(8)} ${$('#coin').val()}`);
console.log(`Lose strike: ${loseStreak} X lose`);
console.log(`speed: ${runSpeed.toFixed(2)}`);
console.log(`run time: ${runDays}:${runHours}:${runMinutes}:${runSeconds}`);
l.balance > balance ? balance = l.balance : balance = balance;
updateChart();
dobet();
}
else {
dobet();
}
}).fail(function (error) {
dobet();
});
}
async function start() {
drawChart().then(function () {
startTime = new Date();
dobet();
}).catch(function () {
});
}
randomizeSeed(start());
Function Calls
None |
Stats
MD5 | a1b67b3f93709e8984e28b19e7622f62 |
Eval Count | 0 |
Decode Time | 81 ms |