From eb0ad100b66706889e4bdf6db0a2143e6930b333 Mon Sep 17 00:00:00 2001 From: Austin Burk Date: Tue, 30 Aug 2022 11:32:49 -0400 Subject: [PATCH] Cachebuster on blockedservers list due to caching causing flip flopping --- try_bruteforce.sh | 2 +- update_blocklist.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;