mmm
This commit is contained in:
parent
0094d52f9c
commit
2d75254117
@ -2289,3 +2289,4 @@ a881deafe178df5a642c6e989a1cbfd3accc0dcb
|
||||
0ba67e6a1b31a095dd7df7a7a14ddce56076979a
|
||||
4de63721d0f8714c65f0a97cfd6c0418f5b5b64e
|
||||
433443faf316bbb1f8b2fa78e709ab3fde95d93c
|
||||
cff3fd9f344241b208f9e8c419b6a4760eaf42dc
|
21
try_bruteforce.sh
Executable file
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
|
Loading…
Reference in New Issue
Block a user