first commit

This commit is contained in:
Bad
2025-10-07 20:29:02 +03:00
commit 74b91e4a9b
10 changed files with 236 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
package-lock.json
node_modules/

75
dregora.js Normal file
View File

@ -0,0 +1,75 @@
const mineflayer = require('mineflayer');
const autoVersionForge = require('minecraft-protocol-forge').autoVersionForge;
const fs = require('fs');
const servers = fs.readFileSync('dregora.txt', 'utf-8')
.split('\n')
.map(line => line.trim())
.filter(Boolean);
const results = [];
function checkServer(server, callback) {
const [host, portStr] = server.split(':');
const port = parseInt(portStr, 10) || 25565;
const bot = mineflayer.createBot({
host,
port,
auth: 'microsoft',
version: false
});
autoVersionForge(bot._client, fs.readFileSync('dregora.json'));
let finished = false;
bot.on('spawn', () => {
if (!finished) {
results.push(`${server}`);
bot.quit();
finished = true;
callback();
}
});
bot.on('kicked', (reason) => {
if (!finished) {
results.push(`${server} X (Kicked: ${reason})`);
finished = true;
callback();
}
});
bot.on('error', (err) => {
if (!finished) {
results.push(`${server} X (Error: ${err.message})`);
finished = true;
callback();
}
});
setTimeout(() => {
if (!finished) {
results.push(`${server} X (Timeout)`);
if (typeof bot.quit === 'function') bot.quit();
finished = true;
callback();
}
}, 15000);
}
function checkAllServers(index = 0) {
if (index >= servers.length) {
fs.writeFileSync('dregora_RESULTS.txt', results.join('\n'));
console.log('Done! Results written to dregora_RESULTS.txt');
return;
}
checkServer(servers[index], () => {
setTimeout(() => {
checkAllServers(index + 1);
}, 5000);
});
}
checkAllServers();

1
dregora.json Normal file

File diff suppressed because one or more lines are too long

10
dregora.txt Normal file
View File

@ -0,0 +1,10 @@
public.rldregora.host
public2.rldregora.host
public3.rldregora.host
dg.rlcraft.club
dscgames.net:25595
dregora.strictgaming.com
ShyCraft.mcserver.us
Foxscape.modded.fun
dreg.toxicnetwork.xyz
dregora.boopnet.gg

10
dregora_RESULTS.txt Normal file
View File

@ -0,0 +1,10 @@
public.rldregora.host X (Error: read ECONNRESET)
public2.rldregora.host ✓
public3.rldregora.host ✓
dg.rlcraft.club X (Timeout)
dscgames.net:25595 X (Error: connect ECONNREFUSED 73.255.163.75:25595)
dregora.strictgaming.com ✓
ShyCraft.mcserver.us X (Kicked: {"translate":"You are not white-listed on this server!"})
Foxscape.modded.fun X (Error: getaddrinfo ENOTFOUND Foxscape.modded.fun)
dreg.toxicnetwork.xyz ✓
dregora.boopnet.gg X (Kicked: [object Object])

6
package.json Normal file
View File

@ -0,0 +1,6 @@
{
"dependencies": {
"minecraft-protocol-forge": "^1.0.0",
"mineflayer": "^4.25.0"
}
}

75
rlcraft.js Normal file
View File

@ -0,0 +1,75 @@
const mineflayer = require('mineflayer');
const autoVersionForge = require('minecraft-protocol-forge').autoVersionForge;
const fs = require('fs');
const servers = fs.readFileSync('rlcraft.txt', 'utf-8')
.split('\n')
.map(line => line.trim())
.filter(Boolean);
const results = [];
function checkServer(server, callback) {
const [host, portStr] = server.split(':');
const port = parseInt(portStr, 10) || 25565;
const bot = mineflayer.createBot({
host,
port,
auth: 'microsoft',
version: false
});
autoVersionForge(bot._client, fs.readFileSync('rlcraft.json'));
let finished = false;
bot.on('spawn', () => {
if (!finished) {
results.push(`${server}`);
bot.quit();
finished = true;
callback();
}
});
bot.on('kicked', (reason) => {
if (!finished) {
results.push(`${server} X (Kicked: ${JSON.stringify(reason)})`);
finished = true;
callback();
}
});
bot.on('error', (err) => {
if (!finished) {
results.push(`${server} X (Error: ${err.message})`);
finished = true;
callback();
}
});
setTimeout(() => {
if (!finished) {
results.push(`${server} X (Timeout)`);
if (typeof bot.quit === 'function') bot.quit();
finished = true;
callback();
}
}, 15000);
}
function checkAllServers(index = 0) {
if (index >= servers.length) {
fs.writeFileSync('rlcraft_RESULTS.txt', results.join('\n'));
console.log('Done! Results written to rlcraft_RESULTS.txt');
return;
}
checkServer(servers[index], () => {
setTimeout(() => {
checkAllServers(index + 1);
}, 5000);
});
}
checkAllServers();

1
rlcraft.json Normal file

File diff suppressed because one or more lines are too long

28
rlcraft.txt Normal file
View File

@ -0,0 +1,28 @@
uw.rlcraft.club
rlcraft.club
public.rlcraft.host
public2.rlcraft.host
public3.rlcraft.host
public4.rlcraft.host
public5.rlcraft.host
RLCMysticRegions.modded.fun
rlc.apollonetwork.org
RLC.APOCGAMING.ORG
play.rlcrafters.ca
rlcraft.hexly.io
rlcraft.strictgaming.com
Rlcraft1B.modded.fun
rl.10thc.org
rlcraft.gamingchrism.com
rlcraft.avianserver.com
149.106.118.31
P0wercraft.mcserver.us
75.34.225.16
rlcraft.sanctuaryofthedoomed.com
deadlinerealms.online
RLCMysticRegions.modded.fun
rl.dirtcraft.gg
rl.SiriusMC.net
185.248.141.12:1058
rlcraft.miauhalla.com
rl.rainbowcreation.net

28
rlcraft_RESULTS.txt Normal file
View File

@ -0,0 +1,28 @@
uw.rlcraft.club ✓
rlcraft.club ✓
public.rlcraft.host ✓
public2.rlcraft.host ✓
public3.rlcraft.host ✓
public4.rlcraft.host ✓
public5.rlcraft.host ✓
RLCMysticRegions.modded.fun X (Error: getaddrinfo ENOTFOUND RLCMysticRegions.modded.fun)
rlc.apollonetwork.org ✓
RLC.APOCGAMING.ORG X (Timeout)
play.rlcrafters.ca X (Error: getaddrinfo ENOTFOUND play.rlcrafters.ca)
rlcraft.hexly.io X (Error: getaddrinfo EAI_AGAIN rlcraft.hexly.io)
rlcraft.strictgaming.com ✓
Rlcraft1B.modded.fun X (Error: getaddrinfo ENOTFOUND Rlcraft1B.modded.fun)
rl.10thc.org X (Error: getaddrinfo ENOTFOUND rl.10thc.org)
rlcraft.gamingchrism.com X (Timeout)
rlcraft.avianserver.com X (Timeout)
149.106.118.31 X (Timeout)
P0wercraft.mcserver.us X (Error: connect ECONNREFUSED 135.148.4.95:25565)
75.34.225.16 X (Kicked: "{\"text\":\"This server has mods that require Forge to be installed on the client. Contact your server admin for more details.\"}")
rlcraft.sanctuaryofthedoomed.com ✓
deadlinerealms.online X (Error: getaddrinfo ENOTFOUND deadlinerealms.online)
RLCMysticRegions.modded.fun X (Error: getaddrinfo ENOTFOUND RLCMysticRegions.modded.fun)
rl.dirtcraft.gg X (Error: getaddrinfo ENOTFOUND rl.dirtcraft.gg)
rl.SiriusMC.net X (Timeout)
185.248.141.12:1058 X (Error: connect ECONNREFUSED 185.248.141.12:1058)
rlcraft.miauhalla.com X (Error: getaddrinfo EAI_AGAIN rlcraft.miauhalla.com)
rl.rainbowcreation.net X (Error: getaddrinfo ENOTFOUND rl.rainbowcreation.net)