From 2d752541174d4459b47a773bf24566c3380d92f7 Mon Sep 17 00:00:00 2001 From: Austin Burk Date: Mon, 29 Aug 2022 18:11:41 -0400 Subject: [PATCH] mmm --- data/current.txt | 3 ++- try_bruteforce.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 try_bruteforce.sh diff --git a/data/current.txt b/data/current.txt index 9fcab75..63f9671 100644 --- a/data/current.txt +++ b/data/current.txt @@ -2288,4 +2288,5 @@ e857174e6e1a537b56b0858b1e1dc326da3d7d71 a881deafe178df5a642c6e989a1cbfd3accc0dcb 0ba67e6a1b31a095dd7df7a7a14ddce56076979a 4de63721d0f8714c65f0a97cfd6c0418f5b5b64e -433443faf316bbb1f8b2fa78e709ab3fde95d93c \ No newline at end of file +433443faf316bbb1f8b2fa78e709ab3fde95d93c +cff3fd9f344241b208f9e8c419b6a4760eaf42dc \ No newline at end of file diff --git a/try_bruteforce.sh b/try_bruteforce.sh new file mode 100755 index 0000000..3946d5c --- /dev/null +++ b/try_bruteforce.sh @@ -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