diff --git a/try_bruteforce.sh b/try_bruteforce.sh index 3946d5c..8650248 100755 --- a/try_bruteforce.sh +++ b/try_bruteforce.sh @@ -16,6 +16,6 @@ for tld in $(cat tld.txt); do cat middle_segments.txt|awk '{print $1".'$tld'"}'; echo "Deduping..." sort -u domains_to_try.txt -o domains_to_try.txt -DOMAIN_COUNT=$(wc -l domains_to_try.txt|awk '{print $1}') +DOMAIN_COUNT=$(wc -w 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 diff --git a/update_blocklist.js b/update_blocklist.js index add8821..a6ad161 100644 --- a/update_blocklist.js +++ b/update_blocklist.js @@ -12,7 +12,7 @@ var current_file = fs.readFileSync(current_path, 'utf8'); var current_hash_count = current_file.split('\n').length; // fetch the blacklisted servers from https://sessionserver.mojang.com/blockedservers -http.get('https://sessionserver.mojang.com/blockedservers', function(res) { +http.get('https://sessionserver.mojang.com/blockedservers?' + Math.floor(Math.random() * 999999), function(res) { var body = ''; res.on('data', function(chunk) { body += chunk;