This commit is contained in:
Austin Burk 2022-08-29 18:11:41 -04:00
parent 0094d52f9c
commit 2d75254117
2 changed files with 23 additions and 1 deletions

@ -2288,4 +2288,5 @@ e857174e6e1a537b56b0858b1e1dc326da3d7d71
a881deafe178df5a642c6e989a1cbfd3accc0dcb a881deafe178df5a642c6e989a1cbfd3accc0dcb
0ba67e6a1b31a095dd7df7a7a14ddce56076979a 0ba67e6a1b31a095dd7df7a7a14ddce56076979a
4de63721d0f8714c65f0a97cfd6c0418f5b5b64e 4de63721d0f8714c65f0a97cfd6c0418f5b5b64e
433443faf316bbb1f8b2fa78e709ab3fde95d93c 433443faf316bbb1f8b2fa78e709ab3fde95d93c
cff3fd9f344241b208f9e8c419b6a4760eaf42dc

21
try_bruteforce.sh Executable file

@ -0,0 +1,21 @@
#!/bin/bash
echo "Building potential domain list..."
> domains_to_try.txt
cat minecraftservers_org_scrape.txt| grep -Po ".+?(?=:)" | grep -Po ".+?(?=\.)\K.*" | tr '[[:upper:]]' '[[:lower:]]'|awk '{print "*"$1}' >> domains_to_try.txt
awk -F= '{print $NF}' data/identified.txt |grep [[:alpha:]]|grep -Po "\*\.\K.*"|awk '{print "*.mc."$1}' >> domains_to_try.txt
awk -F= '{print $NF}' data/identified.txt |grep [[:alpha:]]|grep -Po "\*\.\K.*"|awk '{print "*.play."$1}' >> domains_to_try.txt
echo testing{1..999999} >> domains_to_try.txt
awk -F= '{print $2}' data/identified.txt|grep -v ddns|awk -F. '{print $(NF-1)}'|sort -u > middle_segments.txt
curl -s https://raw.githubusercontent.com/umpirsky/tld-list/master/data/en/tld.txt|grep -Po "\(\K.+?(?=\))" > tld.txt
for tld in $(cat tld.txt); do cat middle_segments.txt|awk '{print $1".'$tld'"}'; done >> domains_to_try.txt
echo "Deduping..."
sort -u domains_to_try.txt -o domains_to_try.txt
DOMAIN_COUNT=$(wc -l domains_to_try.txt|awk '{print $1}')
echo "Checking against $DOMAIN_COUNT possible strings..."
cat domains_to_try.txt | pv -l | xargs -P3 node try_url.js