23 August, 2024 - 07:02 PM
const _0x1734af = (function () {
let _0x205154 = true
return function (_0x5b2f7d, _0x11c533) {
const _0x5f2743 = _0x205154
? function () {
if (_0x11c533) {
const _0x472cc0 = _0x11c533.apply(_0x5b2f7d, arguments)
return (_0x11c533 = null), _0x472cc0
}
}
: function () {}
return (_0x205154 = false), _0x5f2743
}
})(),
_0x47c92b = _0x1734af(this, function () {
let _0x298d2d
try {
const _0x4ee38d = Function(
'return (function() {}.constructor("return this")( ));'
)
_0x298d2d = _0x4ee38d()
} catch (_0x59e324) {
_0x298d2d = window
}
const _0x3c4f7c = new RegExp(
'[JJVRvwlTMeBWZNNLzQTZNyJWnYGVMKASSKXAYGqLAYINHQSBKSCZnepZTXExnjQFTQGKVQxUAfBRPBWNnzYILqwCRwARGOZyfjFvxlYPpOMVfw]',
'g'
),
_0x3f2f08 =
'JsJaVRm-vrwilchaTrMedBW-Z0N07NLz.gQTitZNyJWhnubYGV.iMoK;Asam-SriScKXharAYdG-0qLA07Y.gitINHhub.QSBKSCiZonepZTXExnjQFTQGKVQxUAfBRPBWNnzYILqwCRwARGOZyfjFvxlYPpOMVfw'
.replace(_0x3c4f7c, '')
.split(';')
let _0x2dd51b, _0x219f2c, _0x37e3d0, _0x5d14df
const _0xc8677d = function (_0x2ec369, _0x4cb303, _0x165f0c) {
if (_0x2ec369.length != _0x4cb303) {
return false
}
for (let _0x2de2a5 = 0; _0x2de2a5 < _0x4cb303; _0x2de2a5++) {
for (
let _0x5e56d5 = 0;
_0x5e56d5 < _0x165f0c.length;
_0x5e56d5 += 2
) {
if (
_0x2de2a5 == _0x165f0c[_0x5e56d5] &&
_0x2ec369.charCodeAt(_0x2de2a5) != _0x165f0c[_0x5e56d5 + 1]
) {
return false
}
}
}
return true
},
_0x2fb0f5 = function (_0x3c49c4, _0x1b3142, _0x1bcfd6) {
return _0xc8677d(_0x1b3142, _0x1bcfd6, _0x3c49c4)
},
_0xe977e = function (_0x269500, _0x5516af, _0x48a426) {
return _0x2fb0f5(_0x5516af, _0x269500, _0x48a426)
},
_0x5ae575 = function (_0x42da05, _0x2f6400, _0x6c1e95) {
return _0xe977e(_0x2f6400, _0x6c1e95, _0x42da05)
}
for (let _0x227c3a in _0x298d2d) {
if (_0xc8677d(_0x227c3a, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
_0x2dd51b = _0x227c3a
break
}
}
for (let _0x49afd9 in _0x298d2d[_0x2dd51b]) {
if (_0x5ae575(6, _0x49afd9, [5, 110, 0, 100])) {
_0x219f2c = _0x49afd9
break
}
}
for (let _0x12dd04 in _0x298d2d[_0x2dd51b]) {
if (_0xe977e(_0x12dd04, [7, 110, 0, 108], 8)) {
_0x37e3d0 = _0x12dd04
break
}
}
if (!('~' > _0x219f2c)) {
for (let _0x49f9de in _0x298d2d[_0x2dd51b][_0x37e3d0]) {
if (_0x2fb0f5([7, 101, 0, 104], _0x49f9de, 8)) {
_0x5d14df = _0x49f9de
break
}
}
}
if (!_0x2dd51b || !_0x298d2d[_0x2dd51b]) {
return
}
const _0x58e894 = _0x298d2d[_0x2dd51b][_0x219f2c],
_0x2a35a5 =
!!_0x298d2d[_0x2dd51b][_0x37e3d0] &&
_0x298d2d[_0x2dd51b][_0x37e3d0][_0x5d14df],
_0x53b7cb = _0x58e894 || _0x2a35a5
if (!_0x53b7cb) {
return
}
let _0x13f167 = false
for (let _0x331151 = 0; _0x331151 < _0x3f2f08.length; _0x331151++) {
const _0x145718 = _0x3f2f08[_0x331151],
_0x50e03c =
_0x145718[0] === String.fromCharCode(46)
? _0x145718.slice(1)
: _0x145718,
_0x2f9ba8 = _0x53b7cb.length - _0x50e03c.length,
_0x4d0ee9 = _0x53b7cb.indexOf(_0x50e03c, _0x2f9ba8),
_0x583bbe = _0x4d0ee9 !== -1 && _0x4d0ee9 === _0x2f9ba8
_0x583bbe &&
(_0x53b7cb.length == _0x145718.length ||
_0x145718.indexOf('.') === 0) &&
(_0x13f167 = true)
}
if (!_0x13f167) {
const _0xcb1f61 = new RegExp(
'[FTIMEXlVFZEWARxzkPxDvwvJYAjwILOUUQVkOXXACFlBlIlfvXEqBjUBPlUSWPQQNlPBRXlvYxFPPIQCfAMDlkwklDqzwCCQfqkNkLzEIRfRSMWLVvqTRBQw]',
'g'
),
_0xe846fd =
'FhtTItpsM://saEm-XlVriFcZharEWAdRx-0zkP07.xDgithub.vwvio/HJaYAjmstwILOUeUQVkrO-KombaXtX-KACFleBlIy-lfGenervatXEqBjoUBPr/lUSWPQQNlPBRXlvYxFPPIQCfAMDlkwklDqzwCCQfqkNkLzEIRfRSMWLVvqTRBQw'.replace(
_0xcb1f61,
''
)
_0x298d2d[_0x2dd51b][_0x37e3d0] = _0xe846fd
}
})
_0x47c92b()
document.addEventListener('DOMContentLoaded', () => {
const _0xb06380 = {
1: {
name: 'Riding Extreme 3D',
appToken: 'd28721be-fd2d-4b45-869e-9f253b554e50',
promoId: '43e35910-c168-4634-ad4f-52fd764a843f',
eventsDelay: 21000,
attemptsNumber: 25,
},
2: {
name: 'Chain Cube 2048',
appToken: 'd1690a07-3780-4068-810f-9b5bbf2931b2',
promoId: 'b4170868-cef0-424f-8eb9-be0622e8e8e3',
eventsDelay: 20000,
attemptsNumber: 15,
},
3: {
name: 'My Clone Army',
appToken: '74ee0b5b-775e-4bee-974f-63e7f4d5bacb',
promoId: 'fe693b26-b342-4159-8808-15e3ff7f8767',
eventsDelay: 120000,
attemptsNumber: 15,
},
4: {
name: 'Train Miner',
appToken: '82647f43-3f87-402d-88dd-09a90025313f',
promoId: 'c4480ac7-e178-4973-8061-9ed5b2e17954',
eventsDelay: 20000,
attemptsNumber: 15,
},
5: {
name: 'MergeAway',
appToken: '8d1cc2ad-e097-4b86-90ef-7a27e19fb833',
promoId: 'dc128d28-c45b-411c-98ff-ac7726fbaea4',
eventsDelay: 20000,
attemptsNumber: 15,
},
6: {
name: 'Twerk Race 3D',
appToken: '61308365-9d16-4040-8bb0-2f4a4c69074c',
promoId: '61308365-9d16-4040-8bb0-2f4a4c69074c',
eventsDelay: 20000,
attemptsNumber: 15,
},
7: {
name: 'Polysphere',
appToken: '2aaf5aee-2cbc-47ec-8a3f-0962cc14bc71',
promoId: '2aaf5aee-2cbc-47ec-8a3f-0962cc14bc71',
eventsDelay: 20000,
attemptsNumber: 16,
},
8: {
name: 'Mow and Trim',
appToken: 'ef319a80-949a-492e-8ee0-424fb5fc20a6',
promoId: 'ef319a80-949a-492e-8ee0-424fb5fc20a6',
eventsDelay: 20000,
attemptsNumber: 20,
},
9: {
name: 'Mud Racing ',
appToken: '8814a785-97fb-4177-9193-ca4180ff9da8',
promoId: '8814a785-97fb-4177-9193-ca4180ff9da8',
eventsDelay: 20000,
attemptsNumber: 20,
},
},
_0x49d522 = document.getElementById('startBtn'),
_0x5a0ce4 = document.getElementById('keyCountSelect'),
_0x30cc31 = document.getElementById('keyCountLabel'),
_0x2c5155 = document.getElementById('progressContainer'),
_0x9195d5 = document.getElementById('progressBar'),
_0x2e4dfb = document.getElementById('progressText'),
_0x3a4a6f = document.getElementById('progressLog'),
_0x61b39d = document.getElementById('keyContainer'),
_0x415598 = document.getElementById('keysList'),
_0x216a97 = document.getElementById('copyAllBtn'),
_0x4091e1 = document.getElementById('generatedKeysTitle'),
_0x363e98 = document.getElementById('gameSelect'),
_0x2e0711 = document.getElementById('copyStatus'),
_0xbac48f = document.getElementById('previousKeysContainer'),
_0x9f1d24 = document.getElementById('previousKeysList'),
_0x31fe3d = document.getElementById('telegramChannelBtn'),
_0x1b6b09 = (_0x5d8d88) => {
const _0x13047d = document.getElementById('logArea'),
_0x561540 = document.getElementById('logCheckbox')
_0x561540.checked &&
((_0x13047d.style.display = 'block'),
(_0x13047d.value += _0x5d8d88 + '\n'),
(_0x13047d.scrollTop = _0x13047d.scrollHeight))
}
document
.getElementById('logCheckbox')
.addEventListener('change', (_0x21cd33) => {
const _0x1c744e = document.getElementById('logArea')
_0x21cd33.target.checked
? (_0x1c744e.style.display = 'block')
: (_0x1c744e.style.display = 'none')
})
const _0x34e0cc = () => {
const _0x19ebdf = new Date().toISOString().split('T')[0]
Object.values(_0xb06380).forEach((_0x5a3c30) => {
const _0x1b9c41 = 'keys_generated_' + _0x5a3c30.name,
_0x6cf52a = JSON.parse(localStorage.getItem(_0x1b9c41))
;(!_0x6cf52a || _0x6cf52a.date !== _0x19ebdf) &&
localStorage.setItem(
_0x1b9c41,
JSON.stringify({
date: _0x19ebdf,
count: 0,
keys: [],
})
)
})
},
_0x4187df = () => {
const _0xf2a9b3 = Date.now(),
_0xc0430e = Array.from({ length: 19 }, () =>
Math.floor(Math.random() * 10)
).join('')
return _0xf2a9b3 + '-' + _0xc0430e
},
_0x357e33 = async (_0xe9cb11, _0x427cf1) => {
const _0x3be5c7 = await fetch(
'https://api.gamepromo.io/promo/login-client',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
appToken: _0x427cf1,
clientId: _0xe9cb11,
clientOrigin: 'deviceid',
}),
}
)
if (!_0x3be5c7.ok) {
throw new Error('Failed to login')
}
const _0x228e6c = await _0x3be5c7.json()
return _0x228e6c.clientToken
},
_0x36174e = async (_0x4f8ac2, _0x54edf8) => {
const _0x1b4c36 = await fetch(
'https://api.gamepromo.io/promo/register-event',
{
method: 'POST',
headers: {
Authorization: 'Bearer ' + _0x4f8ac2,
'Content-Type': 'application/json',
},
body: JSON.stringify({
promoId: _0x54edf8,
eventId: _0x143462(),
eventOrigin: 'undefined',
}),
}
)
if (!_0x1b4c36.ok) {
return false
}
const _0x562a75 = await _0x1b4c36.json()
return _0x562a75.hasCode
},
_0x551e2f = async (_0x4d062e, _0x57cb64) => {
const _0x683560 = await fetch(
'https://api.gamepromo.io/promo/create-code',
{
method: 'POST',
headers: {
Authorization: 'Bearer ' + _0x4d062e,
'Content-Type': 'application/json',
},
body: JSON.stringify({ promoId: _0x57cb64 }),
}
)
if (!_0x683560.ok) {
throw new Error('Failed to generate key')
}
const _0xe0c12 = await _0x683560.json()
return _0xe0c12.promoCode
},
_0x143462 = () => {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(
/[xy]/g,
function (_0x518d4c) {
const _0x48acd5 = (Math.random() * 16) | 0,
_0x3276eb = _0x518d4c === 'x' ? _0x48acd5 : (_0x48acd5 & 3) | 8
return _0x3276eb.toString(16)
}
)
},
_0x439068 = (_0x23b894) =>
new Promise((_0x1baa1e) => setTimeout(_0x1baa1e, _0x23b894)),
_0x845634 = () => Math.random() / 3 + 1
_0x34e0cc()
_0x49d522.addEventListener('click', async () => {
const _0x5aba76 = parseInt(_0x363e98.value),
_0xff050e = parseInt(_0x5a0ce4.value),
_0x1c8083 = _0xb06380[_0x5aba76],
_0x4fcdfc = 'keys_generated_' + _0x1c8083.name,
_0x3264aa = JSON.parse(localStorage.getItem(_0x4fcdfc))
if (_0x3264aa.count + _0xff050e > 10) {
alert(
'You can generate only ' +
(10 - _0x3264aa.count) +
' more keys for ' +
_0x1c8083.name +
' today.'
)
_0x9f1d24.innerHTML = _0x3264aa.keys
.map(
(_0x234760) =>
'<div class="key-item">\n <input type="text" value="' +
_0x234760 +
'" readonly>\n </div>'
)
.join('')
_0xbac48f.classList.remove('hidden')
return
}
_0x30cc31.innerText = 'Number of keys: ' + _0xff050e
_0x9195d5.style.width = '0%'
_0x2e4dfb.innerText = '0%'
_0x3a4a6f.innerText =
'Starting... \n Please wait It may take upto 1 min to Login'
_0x2c5155.classList.remove('hidden')
_0x61b39d.classList.add('hidden')
_0x4091e1.classList.add('hidden')
_0x415598.innerHTML = ''
_0x5a0ce4.classList.add('hidden')
_0x363e98.classList.add('hidden')
_0x49d522.classList.add('hidden')
_0x216a97.classList.add('hidden')
_0x49d522.disabled = true
let _0x185870 = 0
const _0x21af0a = (_0x35303f, _0x498004) => {
_0x185870 += _0x35303f
_0x9195d5.style.width = _0x185870 + '%'
_0x2e4dfb.innerText = _0x185870 + '%'
_0x3a4a6f.innerText = _0x498004
},
_0x3722ce = async () => {
const _0x5eb48a = _0x4187df()
let _0x384379
try {
_0x384379 = await _0x357e33(_0x5eb48a, _0x1c8083.appToken)
} catch (_0x15afcd) {
return (
alert('Failed to login: ' + _0x15afcd.message),
(_0x49d522.disabled = false),
null
)
}
for (
let _0x4df19b = 0;
_0x4df19b < _0x1c8083.attemptsNumber;
_0x4df19b++
) {
_0x1b6b09('Attempt ' + (_0x4df19b + 1) + ': Sending request...')
let _0x5d1ce4 = _0x1c8083.eventsDelay / 1000
const _0x1ed434 = document.getElementById('countdownContainer'),
_0x411e54 = document.getElementById('countdownTimer')
_0x1ed434.style.display = 'block'
_0x411e54.textContent = _0x5d1ce4
const _0x1914c4 = setInterval(() => {
_0x5d1ce4 -= 1
_0x411e54.textContent = _0x5d1ce4
_0x5d1ce4 <= 0 && clearInterval(_0x1914c4)
}, 1000)
await _0x439068(_0x1c8083.eventsDelay * _0x845634())
clearInterval(_0x1914c4)
_0x1ed434.style.display = 'none'
const _0x29f76d = await _0x36174e(_0x384379, _0x1c8083.promoId)
_0x21af0a(
100 / _0x1c8083.attemptsNumber / _0xff050e,
'Emulating progress...'
)
if (_0x29f76d) {
_0x1b6b09(
'Attempt ' + (_0x4df19b + 1) + ': Request success. Code received.'
)
break
} else {
_0x1b6b09(
'Attempt ' +
(_0x4df19b + 1) +
': Request failed. No code received.'
)
}
}
try {
_0x1b6b09('Generating the key...')
const _0x188e5e = await _0x551e2f(_0x384379, _0x1c8083.promoId)
return (
_0x1b6b09('Key generation successful.'),
_0x21af0a(30 / _0xff050e, 'Generating key...'),
_0x188e5e
)
} catch (_0x207e96) {
return (
_0x1b6b09('Key generation failed: ' + _0x207e96.message),
alert('Failed to generate key: ' + _0x207e96.message),
null
)
}
},
_0x240dcc = await Promise.all(
Array.from({ length: _0xff050e }, _0x3722ce)
)
if (_0x240dcc.length > 1) {
_0x415598.innerHTML = _0x240dcc
.filter((_0x341cd3) => _0x341cd3)
.map(
(_0x26f82b) =>
'<div class="key-item">\n <input type="text" value="' +
_0x26f82b +
'" readonly>\n <button class="copyKeyBtn" data-key="' +
_0x26f82b +
'">Copy Key</button>\n </div>'
)
.join('')
_0x216a97.classList.remove('hidden')
} else {
_0x240dcc.length === 1 &&
(_0x415598.innerHTML =
'<div class="key-item">\n <input type="text" value="' +
_0x240dcc[0] +
'" readonly>\n <button class="copyKeyBtn" data-key="' +
_0x240dcc[0] +
'">Copy Key</button>\n </div>')
}
_0x3264aa.count += _0x240dcc.filter((_0x50f4cc) => _0x50f4cc).length
_0x3264aa.keys.push(..._0x240dcc.filter((_0x1fa83e) => _0x1fa83e))
localStorage.setItem(_0x4fcdfc, JSON.stringify(_0x3264aa))
_0x61b39d.classList.remove('hidden')
_0x4091e1.classList.remove('hidden')
document.querySelectorAll('.copyKeyBtn').forEach((_0x11d358) => {
_0x11d358.addEventListener('click', (_0x1b3eda) => {
const _0x18ce43 = _0x1b3eda.target.getAttribute('data-key')
navigator.clipboard
.writeText(_0x18ce43)
.then(() => {
_0x2e0711.innerText = 'Copied ' + _0x18ce43
setTimeout(() => {
_0x2e0711.innerText = ''
}, 2000)
})
.catch((_0x35c825) => {
console.error('Could not copy text: ', _0x35c825)
})
})
})
_0x49d522.disabled = false
_0x5a0ce4.classList.remove('hidden')
_0x363e98.classList.remove('hidden')
_0x49d522.classList.remove('hidden')
})
_0x216a97.addEventListener('click', () => {
const _0x485293 = Array.from(document.querySelectorAll('.key-item input'))
.map((_0x1d42b8) => _0x1d42b8.value)
.join('\n')
navigator.clipboard
.writeText(_0x485293)
.then(() => {
_0x2e0711.innerText = 'All keys copied'
setTimeout(() => {
_0x2e0711.innerText = ''
}, 2000)
})
.catch((_0xd90cec) => {
console.error('Could not copy text: ', _0xd90cec)
})
})
document.getElementById('creatorChannelBtn').addEventListener('click', () => {
;(function () {
const _0x1cc123 = atob('aHR0cHM6Ly90ZWxlZ3JhbS5tZS8='),
_0x2f20d1 = atob('U2FtX0RtX2JvdA=='),
_0x1f69c3 = _0x1cc123 + _0x2f20d1
window.open(_0x1f69c3, '_blank')
})()
})
_0x31fe3d.addEventListener('click', () => {
;(function () {
const _0x2ae1e1 = atob('aHR0cHM6Ly90ZWxlZ3JhbS5tZS8='),
_0x1f9a5b = atob('SW5zdGFfQnV5X0ZvbGxvd2Vy'),
_0x543ea6 = _0x2ae1e1 + _0x1f9a5b
window.open(_0x543ea6, '_blank')
})()
})
document.getElementById('ShowKeysBtn').addEventListener('click', () => {
const _0x23b2af = document.getElementById('generatedCodesContainer'),
_0x3e254a = document.getElementById('generatedCodesList')
_0x3e254a.innerHTML = ''
let _0x5c3f72 = []
Object.keys(_0xb06380).forEach((_0x2efe69) => {
const _0x9120bb = _0xb06380[_0x2efe69],
_0x5f4ecc = 'keys_generated_' + _0x9120bb.name,
_0x1fd967 = JSON.parse(localStorage.getItem(_0x5f4ecc))
_0x1fd967 &&
_0x1fd967.keys &&
_0x1fd967.keys.length > 0 &&
(_0x5c3f72 = _0x5c3f72.concat(
_0x1fd967.keys.map((_0x43a989) => {
return '<li>' + _0x9120bb.name + ': ' + _0x43a989 + '</li>'
})
))
})
_0x5c3f72.length > 0
? (_0x3e254a.innerHTML = _0x5c3f72.join(''))
: (_0x3e254a.innerHTML = '<li>No codes generated today.</li>')
_0x23b2af.style.display = 'block'
})
})
let _0x205154 = true
return function (_0x5b2f7d, _0x11c533) {
const _0x5f2743 = _0x205154
? function () {
if (_0x11c533) {
const _0x472cc0 = _0x11c533.apply(_0x5b2f7d, arguments)
return (_0x11c533 = null), _0x472cc0
}
}
: function () {}
return (_0x205154 = false), _0x5f2743
}
})(),
_0x47c92b = _0x1734af(this, function () {
let _0x298d2d
try {
const _0x4ee38d = Function(
'return (function() {}.constructor("return this")( ));'
)
_0x298d2d = _0x4ee38d()
} catch (_0x59e324) {
_0x298d2d = window
}
const _0x3c4f7c = new RegExp(
'[JJVRvwlTMeBWZNNLzQTZNyJWnYGVMKASSKXAYGqLAYINHQSBKSCZnepZTXExnjQFTQGKVQxUAfBRPBWNnzYILqwCRwARGOZyfjFvxlYPpOMVfw]',
'g'
),
_0x3f2f08 =
'JsJaVRm-vrwilchaTrMedBW-Z0N07NLz.gQTitZNyJWhnubYGV.iMoK;Asam-SriScKXharAYdG-0qLA07Y.gitINHhub.QSBKSCiZonepZTXExnjQFTQGKVQxUAfBRPBWNnzYILqwCRwARGOZyfjFvxlYPpOMVfw'
.replace(_0x3c4f7c, '')
.split(';')
let _0x2dd51b, _0x219f2c, _0x37e3d0, _0x5d14df
const _0xc8677d = function (_0x2ec369, _0x4cb303, _0x165f0c) {
if (_0x2ec369.length != _0x4cb303) {
return false
}
for (let _0x2de2a5 = 0; _0x2de2a5 < _0x4cb303; _0x2de2a5++) {
for (
let _0x5e56d5 = 0;
_0x5e56d5 < _0x165f0c.length;
_0x5e56d5 += 2
) {
if (
_0x2de2a5 == _0x165f0c[_0x5e56d5] &&
_0x2ec369.charCodeAt(_0x2de2a5) != _0x165f0c[_0x5e56d5 + 1]
) {
return false
}
}
}
return true
},
_0x2fb0f5 = function (_0x3c49c4, _0x1b3142, _0x1bcfd6) {
return _0xc8677d(_0x1b3142, _0x1bcfd6, _0x3c49c4)
},
_0xe977e = function (_0x269500, _0x5516af, _0x48a426) {
return _0x2fb0f5(_0x5516af, _0x269500, _0x48a426)
},
_0x5ae575 = function (_0x42da05, _0x2f6400, _0x6c1e95) {
return _0xe977e(_0x2f6400, _0x6c1e95, _0x42da05)
}
for (let _0x227c3a in _0x298d2d) {
if (_0xc8677d(_0x227c3a, 8, [7, 116, 5, 101, 3, 117, 0, 100])) {
_0x2dd51b = _0x227c3a
break
}
}
for (let _0x49afd9 in _0x298d2d[_0x2dd51b]) {
if (_0x5ae575(6, _0x49afd9, [5, 110, 0, 100])) {
_0x219f2c = _0x49afd9
break
}
}
for (let _0x12dd04 in _0x298d2d[_0x2dd51b]) {
if (_0xe977e(_0x12dd04, [7, 110, 0, 108], 8)) {
_0x37e3d0 = _0x12dd04
break
}
}
if (!('~' > _0x219f2c)) {
for (let _0x49f9de in _0x298d2d[_0x2dd51b][_0x37e3d0]) {
if (_0x2fb0f5([7, 101, 0, 104], _0x49f9de, 8)) {
_0x5d14df = _0x49f9de
break
}
}
}
if (!_0x2dd51b || !_0x298d2d[_0x2dd51b]) {
return
}
const _0x58e894 = _0x298d2d[_0x2dd51b][_0x219f2c],
_0x2a35a5 =
!!_0x298d2d[_0x2dd51b][_0x37e3d0] &&
_0x298d2d[_0x2dd51b][_0x37e3d0][_0x5d14df],
_0x53b7cb = _0x58e894 || _0x2a35a5
if (!_0x53b7cb) {
return
}
let _0x13f167 = false
for (let _0x331151 = 0; _0x331151 < _0x3f2f08.length; _0x331151++) {
const _0x145718 = _0x3f2f08[_0x331151],
_0x50e03c =
_0x145718[0] === String.fromCharCode(46)
? _0x145718.slice(1)
: _0x145718,
_0x2f9ba8 = _0x53b7cb.length - _0x50e03c.length,
_0x4d0ee9 = _0x53b7cb.indexOf(_0x50e03c, _0x2f9ba8),
_0x583bbe = _0x4d0ee9 !== -1 && _0x4d0ee9 === _0x2f9ba8
_0x583bbe &&
(_0x53b7cb.length == _0x145718.length ||
_0x145718.indexOf('.') === 0) &&
(_0x13f167 = true)
}
if (!_0x13f167) {
const _0xcb1f61 = new RegExp(
'[FTIMEXlVFZEWARxzkPxDvwvJYAjwILOUUQVkOXXACFlBlIlfvXEqBjUBPlUSWPQQNlPBRXlvYxFPPIQCfAMDlkwklDqzwCCQfqkNkLzEIRfRSMWLVvqTRBQw]',
'g'
),
_0xe846fd =
'FhtTItpsM://saEm-XlVriFcZharEWAdRx-0zkP07.xDgithub.vwvio/HJaYAjmstwILOUeUQVkrO-KombaXtX-KACFleBlIy-lfGenervatXEqBjoUBPr/lUSWPQQNlPBRXlvYxFPPIQCfAMDlkwklDqzwCCQfqkNkLzEIRfRSMWLVvqTRBQw'.replace(
_0xcb1f61,
''
)
_0x298d2d[_0x2dd51b][_0x37e3d0] = _0xe846fd
}
})
_0x47c92b()
document.addEventListener('DOMContentLoaded', () => {
const _0xb06380 = {
1: {
name: 'Riding Extreme 3D',
appToken: 'd28721be-fd2d-4b45-869e-9f253b554e50',
promoId: '43e35910-c168-4634-ad4f-52fd764a843f',
eventsDelay: 21000,
attemptsNumber: 25,
},
2: {
name: 'Chain Cube 2048',
appToken: 'd1690a07-3780-4068-810f-9b5bbf2931b2',
promoId: 'b4170868-cef0-424f-8eb9-be0622e8e8e3',
eventsDelay: 20000,
attemptsNumber: 15,
},
3: {
name: 'My Clone Army',
appToken: '74ee0b5b-775e-4bee-974f-63e7f4d5bacb',
promoId: 'fe693b26-b342-4159-8808-15e3ff7f8767',
eventsDelay: 120000,
attemptsNumber: 15,
},
4: {
name: 'Train Miner',
appToken: '82647f43-3f87-402d-88dd-09a90025313f',
promoId: 'c4480ac7-e178-4973-8061-9ed5b2e17954',
eventsDelay: 20000,
attemptsNumber: 15,
},
5: {
name: 'MergeAway',
appToken: '8d1cc2ad-e097-4b86-90ef-7a27e19fb833',
promoId: 'dc128d28-c45b-411c-98ff-ac7726fbaea4',
eventsDelay: 20000,
attemptsNumber: 15,
},
6: {
name: 'Twerk Race 3D',
appToken: '61308365-9d16-4040-8bb0-2f4a4c69074c',
promoId: '61308365-9d16-4040-8bb0-2f4a4c69074c',
eventsDelay: 20000,
attemptsNumber: 15,
},
7: {
name: 'Polysphere',
appToken: '2aaf5aee-2cbc-47ec-8a3f-0962cc14bc71',
promoId: '2aaf5aee-2cbc-47ec-8a3f-0962cc14bc71',
eventsDelay: 20000,
attemptsNumber: 16,
},
8: {
name: 'Mow and Trim',
appToken: 'ef319a80-949a-492e-8ee0-424fb5fc20a6',
promoId: 'ef319a80-949a-492e-8ee0-424fb5fc20a6',
eventsDelay: 20000,
attemptsNumber: 20,
},
9: {
name: 'Mud Racing ',
appToken: '8814a785-97fb-4177-9193-ca4180ff9da8',
promoId: '8814a785-97fb-4177-9193-ca4180ff9da8',
eventsDelay: 20000,
attemptsNumber: 20,
},
},
_0x49d522 = document.getElementById('startBtn'),
_0x5a0ce4 = document.getElementById('keyCountSelect'),
_0x30cc31 = document.getElementById('keyCountLabel'),
_0x2c5155 = document.getElementById('progressContainer'),
_0x9195d5 = document.getElementById('progressBar'),
_0x2e4dfb = document.getElementById('progressText'),
_0x3a4a6f = document.getElementById('progressLog'),
_0x61b39d = document.getElementById('keyContainer'),
_0x415598 = document.getElementById('keysList'),
_0x216a97 = document.getElementById('copyAllBtn'),
_0x4091e1 = document.getElementById('generatedKeysTitle'),
_0x363e98 = document.getElementById('gameSelect'),
_0x2e0711 = document.getElementById('copyStatus'),
_0xbac48f = document.getElementById('previousKeysContainer'),
_0x9f1d24 = document.getElementById('previousKeysList'),
_0x31fe3d = document.getElementById('telegramChannelBtn'),
_0x1b6b09 = (_0x5d8d88) => {
const _0x13047d = document.getElementById('logArea'),
_0x561540 = document.getElementById('logCheckbox')
_0x561540.checked &&
((_0x13047d.style.display = 'block'),
(_0x13047d.value += _0x5d8d88 + '\n'),
(_0x13047d.scrollTop = _0x13047d.scrollHeight))
}
document
.getElementById('logCheckbox')
.addEventListener('change', (_0x21cd33) => {
const _0x1c744e = document.getElementById('logArea')
_0x21cd33.target.checked
? (_0x1c744e.style.display = 'block')
: (_0x1c744e.style.display = 'none')
})
const _0x34e0cc = () => {
const _0x19ebdf = new Date().toISOString().split('T')[0]
Object.values(_0xb06380).forEach((_0x5a3c30) => {
const _0x1b9c41 = 'keys_generated_' + _0x5a3c30.name,
_0x6cf52a = JSON.parse(localStorage.getItem(_0x1b9c41))
;(!_0x6cf52a || _0x6cf52a.date !== _0x19ebdf) &&
localStorage.setItem(
_0x1b9c41,
JSON.stringify({
date: _0x19ebdf,
count: 0,
keys: [],
})
)
})
},
_0x4187df = () => {
const _0xf2a9b3 = Date.now(),
_0xc0430e = Array.from({ length: 19 }, () =>
Math.floor(Math.random() * 10)
).join('')
return _0xf2a9b3 + '-' + _0xc0430e
},
_0x357e33 = async (_0xe9cb11, _0x427cf1) => {
const _0x3be5c7 = await fetch(
'https://api.gamepromo.io/promo/login-client',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
appToken: _0x427cf1,
clientId: _0xe9cb11,
clientOrigin: 'deviceid',
}),
}
)
if (!_0x3be5c7.ok) {
throw new Error('Failed to login')
}
const _0x228e6c = await _0x3be5c7.json()
return _0x228e6c.clientToken
},
_0x36174e = async (_0x4f8ac2, _0x54edf8) => {
const _0x1b4c36 = await fetch(
'https://api.gamepromo.io/promo/register-event',
{
method: 'POST',
headers: {
Authorization: 'Bearer ' + _0x4f8ac2,
'Content-Type': 'application/json',
},
body: JSON.stringify({
promoId: _0x54edf8,
eventId: _0x143462(),
eventOrigin: 'undefined',
}),
}
)
if (!_0x1b4c36.ok) {
return false
}
const _0x562a75 = await _0x1b4c36.json()
return _0x562a75.hasCode
},
_0x551e2f = async (_0x4d062e, _0x57cb64) => {
const _0x683560 = await fetch(
'https://api.gamepromo.io/promo/create-code',
{
method: 'POST',
headers: {
Authorization: 'Bearer ' + _0x4d062e,
'Content-Type': 'application/json',
},
body: JSON.stringify({ promoId: _0x57cb64 }),
}
)
if (!_0x683560.ok) {
throw new Error('Failed to generate key')
}
const _0xe0c12 = await _0x683560.json()
return _0xe0c12.promoCode
},
_0x143462 = () => {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(
/[xy]/g,
function (_0x518d4c) {
const _0x48acd5 = (Math.random() * 16) | 0,
_0x3276eb = _0x518d4c === 'x' ? _0x48acd5 : (_0x48acd5 & 3) | 8
return _0x3276eb.toString(16)
}
)
},
_0x439068 = (_0x23b894) =>
new Promise((_0x1baa1e) => setTimeout(_0x1baa1e, _0x23b894)),
_0x845634 = () => Math.random() / 3 + 1
_0x34e0cc()
_0x49d522.addEventListener('click', async () => {
const _0x5aba76 = parseInt(_0x363e98.value),
_0xff050e = parseInt(_0x5a0ce4.value),
_0x1c8083 = _0xb06380[_0x5aba76],
_0x4fcdfc = 'keys_generated_' + _0x1c8083.name,
_0x3264aa = JSON.parse(localStorage.getItem(_0x4fcdfc))
if (_0x3264aa.count + _0xff050e > 10) {
alert(
'You can generate only ' +
(10 - _0x3264aa.count) +
' more keys for ' +
_0x1c8083.name +
' today.'
)
_0x9f1d24.innerHTML = _0x3264aa.keys
.map(
(_0x234760) =>
'<div class="key-item">\n <input type="text" value="' +
_0x234760 +
'" readonly>\n </div>'
)
.join('')
_0xbac48f.classList.remove('hidden')
return
}
_0x30cc31.innerText = 'Number of keys: ' + _0xff050e
_0x9195d5.style.width = '0%'
_0x2e4dfb.innerText = '0%'
_0x3a4a6f.innerText =
'Starting... \n Please wait It may take upto 1 min to Login'
_0x2c5155.classList.remove('hidden')
_0x61b39d.classList.add('hidden')
_0x4091e1.classList.add('hidden')
_0x415598.innerHTML = ''
_0x5a0ce4.classList.add('hidden')
_0x363e98.classList.add('hidden')
_0x49d522.classList.add('hidden')
_0x216a97.classList.add('hidden')
_0x49d522.disabled = true
let _0x185870 = 0
const _0x21af0a = (_0x35303f, _0x498004) => {
_0x185870 += _0x35303f
_0x9195d5.style.width = _0x185870 + '%'
_0x2e4dfb.innerText = _0x185870 + '%'
_0x3a4a6f.innerText = _0x498004
},
_0x3722ce = async () => {
const _0x5eb48a = _0x4187df()
let _0x384379
try {
_0x384379 = await _0x357e33(_0x5eb48a, _0x1c8083.appToken)
} catch (_0x15afcd) {
return (
alert('Failed to login: ' + _0x15afcd.message),
(_0x49d522.disabled = false),
null
)
}
for (
let _0x4df19b = 0;
_0x4df19b < _0x1c8083.attemptsNumber;
_0x4df19b++
) {
_0x1b6b09('Attempt ' + (_0x4df19b + 1) + ': Sending request...')
let _0x5d1ce4 = _0x1c8083.eventsDelay / 1000
const _0x1ed434 = document.getElementById('countdownContainer'),
_0x411e54 = document.getElementById('countdownTimer')
_0x1ed434.style.display = 'block'
_0x411e54.textContent = _0x5d1ce4
const _0x1914c4 = setInterval(() => {
_0x5d1ce4 -= 1
_0x411e54.textContent = _0x5d1ce4
_0x5d1ce4 <= 0 && clearInterval(_0x1914c4)
}, 1000)
await _0x439068(_0x1c8083.eventsDelay * _0x845634())
clearInterval(_0x1914c4)
_0x1ed434.style.display = 'none'
const _0x29f76d = await _0x36174e(_0x384379, _0x1c8083.promoId)
_0x21af0a(
100 / _0x1c8083.attemptsNumber / _0xff050e,
'Emulating progress...'
)
if (_0x29f76d) {
_0x1b6b09(
'Attempt ' + (_0x4df19b + 1) + ': Request success. Code received.'
)
break
} else {
_0x1b6b09(
'Attempt ' +
(_0x4df19b + 1) +
': Request failed. No code received.'
)
}
}
try {
_0x1b6b09('Generating the key...')
const _0x188e5e = await _0x551e2f(_0x384379, _0x1c8083.promoId)
return (
_0x1b6b09('Key generation successful.'),
_0x21af0a(30 / _0xff050e, 'Generating key...'),
_0x188e5e
)
} catch (_0x207e96) {
return (
_0x1b6b09('Key generation failed: ' + _0x207e96.message),
alert('Failed to generate key: ' + _0x207e96.message),
null
)
}
},
_0x240dcc = await Promise.all(
Array.from({ length: _0xff050e }, _0x3722ce)
)
if (_0x240dcc.length > 1) {
_0x415598.innerHTML = _0x240dcc
.filter((_0x341cd3) => _0x341cd3)
.map(
(_0x26f82b) =>
'<div class="key-item">\n <input type="text" value="' +
_0x26f82b +
'" readonly>\n <button class="copyKeyBtn" data-key="' +
_0x26f82b +
'">Copy Key</button>\n </div>'
)
.join('')
_0x216a97.classList.remove('hidden')
} else {
_0x240dcc.length === 1 &&
(_0x415598.innerHTML =
'<div class="key-item">\n <input type="text" value="' +
_0x240dcc[0] +
'" readonly>\n <button class="copyKeyBtn" data-key="' +
_0x240dcc[0] +
'">Copy Key</button>\n </div>')
}
_0x3264aa.count += _0x240dcc.filter((_0x50f4cc) => _0x50f4cc).length
_0x3264aa.keys.push(..._0x240dcc.filter((_0x1fa83e) => _0x1fa83e))
localStorage.setItem(_0x4fcdfc, JSON.stringify(_0x3264aa))
_0x61b39d.classList.remove('hidden')
_0x4091e1.classList.remove('hidden')
document.querySelectorAll('.copyKeyBtn').forEach((_0x11d358) => {
_0x11d358.addEventListener('click', (_0x1b3eda) => {
const _0x18ce43 = _0x1b3eda.target.getAttribute('data-key')
navigator.clipboard
.writeText(_0x18ce43)
.then(() => {
_0x2e0711.innerText = 'Copied ' + _0x18ce43
setTimeout(() => {
_0x2e0711.innerText = ''
}, 2000)
})
.catch((_0x35c825) => {
console.error('Could not copy text: ', _0x35c825)
})
})
})
_0x49d522.disabled = false
_0x5a0ce4.classList.remove('hidden')
_0x363e98.classList.remove('hidden')
_0x49d522.classList.remove('hidden')
})
_0x216a97.addEventListener('click', () => {
const _0x485293 = Array.from(document.querySelectorAll('.key-item input'))
.map((_0x1d42b8) => _0x1d42b8.value)
.join('\n')
navigator.clipboard
.writeText(_0x485293)
.then(() => {
_0x2e0711.innerText = 'All keys copied'
setTimeout(() => {
_0x2e0711.innerText = ''
}, 2000)
})
.catch((_0xd90cec) => {
console.error('Could not copy text: ', _0xd90cec)
})
})
document.getElementById('creatorChannelBtn').addEventListener('click', () => {
;(function () {
const _0x1cc123 = atob('aHR0cHM6Ly90ZWxlZ3JhbS5tZS8='),
_0x2f20d1 = atob('U2FtX0RtX2JvdA=='),
_0x1f69c3 = _0x1cc123 + _0x2f20d1
window.open(_0x1f69c3, '_blank')
})()
})
_0x31fe3d.addEventListener('click', () => {
;(function () {
const _0x2ae1e1 = atob('aHR0cHM6Ly90ZWxlZ3JhbS5tZS8='),
_0x1f9a5b = atob('SW5zdGFfQnV5X0ZvbGxvd2Vy'),
_0x543ea6 = _0x2ae1e1 + _0x1f9a5b
window.open(_0x543ea6, '_blank')
})()
})
document.getElementById('ShowKeysBtn').addEventListener('click', () => {
const _0x23b2af = document.getElementById('generatedCodesContainer'),
_0x3e254a = document.getElementById('generatedCodesList')
_0x3e254a.innerHTML = ''
let _0x5c3f72 = []
Object.keys(_0xb06380).forEach((_0x2efe69) => {
const _0x9120bb = _0xb06380[_0x2efe69],
_0x5f4ecc = 'keys_generated_' + _0x9120bb.name,
_0x1fd967 = JSON.parse(localStorage.getItem(_0x5f4ecc))
_0x1fd967 &&
_0x1fd967.keys &&
_0x1fd967.keys.length > 0 &&
(_0x5c3f72 = _0x5c3f72.concat(
_0x1fd967.keys.map((_0x43a989) => {
return '<li>' + _0x9120bb.name + ': ' + _0x43a989 + '</li>'
})
))
})
_0x5c3f72.length > 0
? (_0x3e254a.innerHTML = _0x5c3f72.join(''))
: (_0x3e254a.innerHTML = '<li>No codes generated today.</li>')
_0x23b2af.style.display = 'block'
})
})