identifying/tracking minecraft servers on mojang's blocklist
Go to file
2022-08-23 18:54:24 -04:00
data More domains, update to list 2022-08-23 18:54:24 -04:00
.gitignore Starting off with 80/2317 identified hostnames 2022-08-23 14:40:19 -04:00
fetch_list.js Starting off with 80/2317 identified hostnames 2022-08-23 14:40:19 -04:00
LICENSE Initial commit 2022-08-23 14:08:35 -04:00
package-lock.json Starting off with 80/2317 identified hostnames 2022-08-23 14:40:19 -04:00
package.json Starting off with 80/2317 identified hostnames 2022-08-23 14:40:19 -04:00
README.md add todo command to README 2022-08-23 17:57:48 -04:00
try_url.js Starting off with 80/2317 identified hostnames 2022-08-23 14:40:19 -04:00

sudofox/mojang-blacklist

I figured I'd try to get a more comprehensive list of the domains blocked by Mojang, so this is my stab at it.

useful bash snippets

Get a list of TLDs (idk if this is super up to date)

curl -s https://raw.githubusercontent.com/umpirsky/tld-list/master/data/en/tld.txt|awk '{print $1}' > tld.txt

Get the middle segment (part before the TLD) of all entries, excluding ddns.net, spit it out as *.string

awk -F= '{print $2}' data/identified.txt|grep -v ddns|awk -F. '{print "*."$(NF-1)}'|sort -u > middle_segments.txt

For all TLDs in tld.txt, try *.string.tld

for tld in $(cat tld.txt); do cat middle_segments.txt|awk '{print $1".'$tld'"}';  done|pv -l |xargs node try_url.js

Get a list of hashes which have not yet been identified

comm -23 <(sort -u data/current.txt) <(awk -F= '{print $1}' data/identified.txt |sort -u) > todo.txt