Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
const mineflayer = require('mineflayer'); const readline = require('readline'); const ..
Decoded Output download
<? const mineflayer = require('mineflayer');
const readline = require('readline');
const accounts = [
'kotevok123456',
'badogos_rc1',
'UnspokableR1zz',
];
const serverConfig = {
host: 'play.rivalsnetwork.hu',
port: 25565,
version: '1.18.2',
};
function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function createBot(username, password) {
const bot = mineflayer.createBot({
host: serverConfig.host,
port: serverConfig.port,
username: username,
version: serverConfig.version,
});
bot.on('login', () => {
console.log(`${username} successfully logged into the server!`);
bot.chat(`/login ${password}`);
});
bot.on('kick', (reason) => {
console.log(`${username} was kicked from the server. Reason:`, reason);
reconnectBot(username, password);
});
bot.on('end', (reason) => {
console.log(`${username}'s connection ended. Reason:`, reason);
reconnectBot(username, password);
});
bot.on('error', (err) => {
console.error(`${username} encountered an error:`, err);
reconnectBot(username, password);
});
bot.on('message', (message) => {
console.log(`[${username}]: ${message.toString()}`);
});
function reconnectBot(username, password) {
console.log(`Reconnecting ${username} in 5 seconds...`);
setTimeout(() => createBot(username, password), 5000);
}
}
async function initializeBots(password) {
for (const username of accounts) {
createBot(username, password);
await delay(2000);
}
}
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('Enter the password: ', (password) => {
rl.close();
initializeBots(password);
});
?>
Did this file decode correctly?
Original Code
const mineflayer = require('mineflayer');
const readline = require('readline');
const accounts = [
'kotevok123456',
'badogos_rc1',
'UnspokableR1zz',
];
const serverConfig = {
host: 'play.rivalsnetwork.hu',
port: 25565,
version: '1.18.2',
};
function delay(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function createBot(username, password) {
const bot = mineflayer.createBot({
host: serverConfig.host,
port: serverConfig.port,
username: username,
version: serverConfig.version,
});
bot.on('login', () => {
console.log(`${username} successfully logged into the server!`);
bot.chat(`/login ${password}`);
});
bot.on('kick', (reason) => {
console.log(`${username} was kicked from the server. Reason:`, reason);
reconnectBot(username, password);
});
bot.on('end', (reason) => {
console.log(`${username}'s connection ended. Reason:`, reason);
reconnectBot(username, password);
});
bot.on('error', (err) => {
console.error(`${username} encountered an error:`, err);
reconnectBot(username, password);
});
bot.on('message', (message) => {
console.log(`[${username}]: ${message.toString()}`);
});
function reconnectBot(username, password) {
console.log(`Reconnecting ${username} in 5 seconds...`);
setTimeout(() => createBot(username, password), 5000);
}
}
async function initializeBots(password) {
for (const username of accounts) {
createBot(username, password);
await delay(2000);
}
}
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
rl.question('Enter the password: ', (password) => {
rl.close();
initializeBots(password);
});
Function Calls
None |
Stats
MD5 | 911130284b56b6b9ff135956087bff31 |
Eval Count | 0 |
Decode Time | 49 ms |