Starting off with 80/2317 identified hostnames
This commit is contained in:
parent
692d666dd3
commit
f26c52926b
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
node_modules
|
2318
data/current.txt
Normal file
2318
data/current.txt
Normal file
File diff suppressed because it is too large
Load Diff
80
data/identified.txt
Normal file
80
data/identified.txt
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
05e7e9bb216a5aff80677a166512231292963111=*.dreamraids.com
|
||||||
|
073ca448ef3d311218d7bd32d6307243ce22e7d0=*.diacraft.org
|
||||||
|
085eb6b3698fca114061d5dc45ea47562fa77fdc=*.fadedsb.com
|
||||||
|
0895088704d654a0fc6b2ac0382b72b434e85258=*.emenbee.net
|
||||||
|
0ae1df9ef1b7f3a4d7ef5aa7a0781fcc7c9f08f8=*.play.mc-drugs.com
|
||||||
|
0bb9ba046423e1fe4584f233e37ece4c217bd086=*.mc-wars.org
|
||||||
|
11a2c115510bfa6cb56bbd18a7259a4420498fd5=*.slaughterhousepvp.com
|
||||||
|
13731340bc3f724c97c01af0085dee56e7310ceb=testing22233
|
||||||
|
16c244aab71e3f113a8c16cd43d6fc5f3db85086=*.build-hive.net
|
||||||
|
1833a73f1bf6791836fef34313313b242593c8ac=one-of-these-is-a-real-server-lol.ddns.net
|
||||||
|
278b24ffff7f9f46cf71212a4c0948d07fb3bc35=*.brandonlovescock.club
|
||||||
|
27ae74becc8cd701b19f25d347faa71084f69acd=*.arkhamnetwork.org
|
||||||
|
27cf97ecf24c92f1fe5c84c5ff654728c3ee37dd=letsplaysome.servecounterstrike.com
|
||||||
|
2a5d776a9d8dd8ef7b5de2bb67eee31476a9066f=*.skyblock.xyz
|
||||||
|
32066aa0c7dc9b097eed5b00c5629ad03f250a2d=mojangbrokeintomy.homesecuritymac.com
|
||||||
|
336e718ffbc705e76b4a72884172c6b95216b57c=canyouwildcardipsplease.gotdns.ch
|
||||||
|
33839f4006d6044a3a6675c593fada6a690bb64d=*.diacraft.de
|
||||||
|
35da760e9672e17b872ae6381cb50a075c4baa58=testing223111
|
||||||
|
3e560742576af9413fca72e70f75d7ddc9416020=*.insanefactions.org
|
||||||
|
42b4a22a1ea901f25239d956c06221a4f8000b7a=*.opanarchy.com
|
||||||
|
44cf0aa40a3df93292686aec852d6b880c188405=*.opmines.net
|
||||||
|
464faa661db64d34508a6545da01fc28de775fe5=testing234567
|
||||||
|
476b301d0111dbb9acb15f0b150d02b1511c9b21=testing2222
|
||||||
|
47972b2d4274fad80fd478fd1cfdcf63d35beac7=*.evermine.it
|
||||||
|
47f35f2106f6f9c57ab03774d439e2a788ef6e94=testing7
|
||||||
|
48f04e89d20b15de115503f22fedfe2cb2d1ab12=brandonisan.unusualperson.com
|
||||||
|
498a4275c88c33b7100adf896160725b138ce976=*.monman11.com
|
||||||
|
4a1b3b860ba0b441fa722bbcba97a614f6af9bb8=justgiveinandblockddnsbitches.ddns.net
|
||||||
|
52e4b0e28775ee23720f2113627a5967353e26dd=testing456
|
||||||
|
5487a588965f927656295a9d6c860c5260bf0b1a=*.minebrawl.org
|
||||||
|
59734eec0f6b88730d8dd1545bef6c064fa75554=testing111
|
||||||
|
59c71877113518d31174b62ef57c5fa256d4c674=testing321
|
||||||
|
5d2e23d164a43fbfc4e6093074567f39b504ab51=touchmybody.redirectme.net
|
||||||
|
605e6296b8dba9f0e4b8e43269fe5d053b5f4f1b=*.mojangendorsesbrazzers.webcam
|
||||||
|
6071f6306688398d41a69f097c73d1762ce62eee=*.skykingdoms.net
|
||||||
|
63b40b293e4a1c62528038dbf8c8ed626bbac3a8=*.mc-prison.com
|
||||||
|
65ca8860fa8141da805106c0389de9d7c17e39bf=*.howdoiblacklistsrv.host
|
||||||
|
696ebe386c8f7c6ed86d45598729219c9febb210=*.survivalsb.com
|
||||||
|
6b8812cf930543579fd88714e182e566dd6506ce=*.playminecraftworld.nl
|
||||||
|
6ddf48140859b7c6ec877337f703f246e8983cfd=testing5
|
||||||
|
6e503bb6fe14c424c09af15fe5909bf4a74dd18c=testing23
|
||||||
|
73dfa39737a3ee491a506f722d0b768f945e2824=*.craftlandia.com.br
|
||||||
|
75df09492c6c979e2db41116100093bb791b8433=*.timelesspvp.net
|
||||||
|
771fcaffdba4d1afd318bf38a807c39e0f3956c2=testing2888
|
||||||
|
79aecb5b9fafced11f05bbb6939262f5d4e3626b=*.blacklistthisifyousupportrape.host
|
||||||
|
7c8533fa5c1a5d4ee10e87711a0ff273f2a5088b=*.kitpvp.us
|
||||||
|
7dca807cc9484b1eed109c003831faf189b6c8bf=*.brandonlovescock.online
|
||||||
|
7ea72de5f8e70a2ac45f1aa17d43f0ca3cddeedd=*.trollingbrandon.club
|
||||||
|
85c2adc78ace183692047f292ee8322a7ecad6e0=testing211
|
||||||
|
8789800277882d1989d384e7941b6ad3dadab430=*.moredotsmoredots.xyz
|
||||||
|
88f155cf583c930ffed0e3e69ebc3a186ea8cbb7=*.fucktheeula.com
|
||||||
|
8bf58811e6ebca16a01b842ff0c012db1171d7d6=*.eulablows.host
|
||||||
|
936dbace9de52d7ba779b754a734e690c713bd49=*.cosmicpvp.com
|
||||||
|
986204c70d368d50ffead9031e86f2b9e70bb6d0=*.playmc.mx
|
||||||
|
9a9ae8e9d0b6f3bf54c266dcd1e4ec034e13f714=brandonwatchesporn.onthewifi.com
|
||||||
|
9f0f30820cebb01f6c81f0fdafefa0142660d688=*.kidslovemy500dollarranks.club
|
||||||
|
a47d957b4ace8d7187a0bf733f8156ed18af1c13=chronos.clmc.com.br
|
||||||
|
b140bec2347bfbe6dcae44aa876b9ba5fe66505b=*.phoenixnexus.net
|
||||||
|
b21d77260ed7a792c216b18c7287d683b2a271bd=*.kidslovemy500dollarranks.online
|
||||||
|
b88c908d8e751d64ab883639f04944f2a365db83=testing4
|
||||||
|
b8c876f599dcf5162911bba2d543ccbd23d18ae5=brandonisagainst.health-carereform.com
|
||||||
|
bb83aeeac53cf42a16efaa89766be48aa3e6654c=lunamc-bypass-mojang1.securitytactics.com
|
||||||
|
be829bacbe6388c39370b6bbd0d4baf17eb2db91=replay.clmc.com.br
|
||||||
|
c005ad34245a8f2105658da2d6d6e8545ef0f0de=*.skygod.us
|
||||||
|
c0cbbeafc38c7b7acc5ff58f372e1296e54eebb5=testing2456
|
||||||
|
c6a2203285fb0a475c1cd6ff72527209cc0ccc6e=*.brandonlovescock.press
|
||||||
|
cdf5108556c00e6e0c42e1a52516d1b4317bbc1c=*.planetsb.net
|
||||||
|
d42339c120bc10a393a0b1d2c6a2e0ed4dbdd61b=*.herowars.org
|
||||||
|
da9e239d7e0f2940494e266de69cab206ad837f8=testing1213
|
||||||
|
dacfeab0c42cf69579bd655aef840ef723949208=mc-gtm.net
|
||||||
|
dcc1f876e258ac5ecab28244da7a94ed44d4b43f=198.27.77.72
|
||||||
|
e057d482d33223e9cb48aed3e2d51396a19dbd26=testing26
|
||||||
|
e2e12f3b7b85eab81c0ee5d2e9e188df583fe281=*.eulablacklist.club
|
||||||
|
e3985eb936d66c9b07aa72c15358f92965b1194e=*.insanenetwork.org
|
||||||
|
e40c3456fb05687b8eeb17213a47b263d566f179=*.brandonlovescock.bid
|
||||||
|
e857174e6e1a537b56b0858b1e1dc326da3d7d71=*.cunnycraft.pink
|
||||||
|
e9600bc4a811f2ef98c4e5912bb6d378ab0f1795=testing2231
|
||||||
|
f35626d14945983f63d3e1d9ea6fee79a4d56029=lets-make-your-job-more-fun-shall-we.ddns.net
|
||||||
|
f3df314d1f816a8c2185cd7d4bcd73bbcffc4ed8=*.mojangsentamonkeyinto.space
|
||||||
|
f7144c09c929b7ec5d72916e2d38a93a869c89ac=testing2543
|
24
fetch_list.js
Normal file
24
fetch_list.js
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers and stick it in data/current.txt
|
||||||
|
|
||||||
|
// import http, path, and fs
|
||||||
|
var http = require('https');
|
||||||
|
var path = require('path');
|
||||||
|
var fs = require('fs');
|
||||||
|
|
||||||
|
var current_path = path.join(__dirname, 'data', 'current.txt');
|
||||||
|
|
||||||
|
// fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers
|
||||||
|
http.get('https://sessionserver.mojang.com/blockedservers', function(res) {
|
||||||
|
var body = '';
|
||||||
|
res.on('data', function(chunk) {
|
||||||
|
body += chunk;
|
||||||
|
}).on('end', function() {
|
||||||
|
|
||||||
|
// write the blacklisted servers to data/current.txt
|
||||||
|
fs.writeFile(current_path, body, function(err) {
|
||||||
|
if (err) {
|
||||||
|
console.log(err);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
})
|
69
package-lock.json
generated
Normal file
69
package-lock.json
generated
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
{
|
||||||
|
"name": "mojang-blacklist",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 1,
|
||||||
|
"requires": true,
|
||||||
|
"dependencies": {
|
||||||
|
"charenc": {
|
||||||
|
"version": "0.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz",
|
||||||
|
"integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA=="
|
||||||
|
},
|
||||||
|
"crypt": {
|
||||||
|
"version": "0.0.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz",
|
||||||
|
"integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow=="
|
||||||
|
},
|
||||||
|
"data-uri-to-buffer": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA=="
|
||||||
|
},
|
||||||
|
"fetch-blob": {
|
||||||
|
"version": "3.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
|
||||||
|
"integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
|
||||||
|
"requires": {
|
||||||
|
"node-domexception": "^1.0.0",
|
||||||
|
"web-streams-polyfill": "^3.0.3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"formdata-polyfill": {
|
||||||
|
"version": "4.0.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
|
||||||
|
"integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
|
||||||
|
"requires": {
|
||||||
|
"fetch-blob": "^3.1.2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node-domexception": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
|
||||||
|
"integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="
|
||||||
|
},
|
||||||
|
"node-fetch": {
|
||||||
|
"version": "3.2.10",
|
||||||
|
"resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.2.10.tgz",
|
||||||
|
"integrity": "sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA==",
|
||||||
|
"requires": {
|
||||||
|
"data-uri-to-buffer": "^4.0.0",
|
||||||
|
"fetch-blob": "^3.1.4",
|
||||||
|
"formdata-polyfill": "^4.0.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sha1": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA==",
|
||||||
|
"requires": {
|
||||||
|
"charenc": ">= 0.0.1",
|
||||||
|
"crypt": ">= 0.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"web-streams-polyfill": {
|
||||||
|
"version": "3.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz",
|
||||||
|
"integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q=="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
15
package.json
Normal file
15
package.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "mojang-blacklist",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "tracking and identifying blacklisted minecraft servers",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"author": "sudofox",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"node-fetch": "^3.2.10",
|
||||||
|
"sha1": "^1.1.1"
|
||||||
|
}
|
||||||
|
}
|
73
try_url.js
Normal file
73
try_url.js
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
// import data/current.txt
|
||||||
|
|
||||||
|
var fs = require("fs");
|
||||||
|
var path = require("path");
|
||||||
|
var sha1 = require("sha1");
|
||||||
|
|
||||||
|
// require at least one argument
|
||||||
|
if (process.argv.length < 3) {
|
||||||
|
console.log("Usage: node try_url.js <url>");
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// simplify the path definition into a single line
|
||||||
|
var current_path = path.join(__dirname, "data", "current.txt");
|
||||||
|
var identified_path = path.join(__dirname, "data", "identified.txt");
|
||||||
|
// read it into an array (no empty lines)
|
||||||
|
var current = fs
|
||||||
|
.readFileSync(current_path)
|
||||||
|
.toString()
|
||||||
|
.split("\n")
|
||||||
|
.filter((line) => line.length > 0);
|
||||||
|
var identified_raw = fs
|
||||||
|
.readFileSync(identified_path)
|
||||||
|
.toString()
|
||||||
|
.split("\n")
|
||||||
|
.filter((line) => line.length > 0);
|
||||||
|
|
||||||
|
var identified = [];
|
||||||
|
// for identified, split each line into key/value on =
|
||||||
|
identified_raw.map(function (line) {
|
||||||
|
var parts = line.split("=");
|
||||||
|
identified[parts[0]] = parts[1];
|
||||||
|
});
|
||||||
|
|
||||||
|
var unidentified = [];
|
||||||
|
// add any servers that are not in identified to unidentified
|
||||||
|
current.map(function (line) {
|
||||||
|
if (!identified[line]) {
|
||||||
|
unidentified.push(line);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
new_identified = [];
|
||||||
|
|
||||||
|
// for each argument on the command line, sha1 it and add check if it is in unidentified
|
||||||
|
process.argv.map(function (arg) {
|
||||||
|
var hash = sha1(arg);
|
||||||
|
if (unidentified.indexOf(hash) > -1) {
|
||||||
|
// green text
|
||||||
|
console.log("\x1b[32m%s\x1b[0m", "Identified " + hash + " as " + arg);
|
||||||
|
new_identified[hash] = arg;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// merge new_identified with identified
|
||||||
|
Object.assign(identified, new_identified);
|
||||||
|
|
||||||
|
// write identified to stdout
|
||||||
|
Object.keys(new_identified).map(function (key) {
|
||||||
|
console.log(key + "=" + new_identified[key]);
|
||||||
|
});
|
||||||
|
|
||||||
|
// write identified to data/identified.txt (key=value\n) (sorted by key)
|
||||||
|
if (Object.keys(new_identified).length > 0) {
|
||||||
|
var new_identified_string = "";
|
||||||
|
Object.keys(identified)
|
||||||
|
.sort()
|
||||||
|
.map(function (key) {
|
||||||
|
new_identified_string += key + "=" + identified[key] + "\n";
|
||||||
|
});
|
||||||
|
|
||||||
|
fs.writeFileSync(identified_path, new_identified_string);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user