Skip to content

Instantly share code, notes, and snippets.

@Gavriel770U
Created August 25, 2024 13:18
Show Gist options
  • Save Gavriel770U/12a1b201bd1b2f005dd659f35ea08816 to your computer and use it in GitHub Desktop.
Save Gavriel770U/12a1b201bd1b2f005dd659f35ea08816 to your computer and use it in GitHub Desktop.
Zed puzzle Alphabet level k bruteforcer
import requests
import re
import sys
words_list = []
results = []
urls = []#['https://www.bestwordlist.com/5letterwords.htm']
for i in range (2, 27): # answer is in page 8
urls.append(f'https://www.bestwordlist.com/5letterwordspage{i}.htm')
print(urls)
for url in urls:
response = requests.get(url)
clear_html_addons = response.text.replace('<b>', '').replace('</b>', '').replace('<span class=rd>', '').replace('</span>', '')
words_only = re.search('<p><span class=mt>(.*)</p><p><span class=pg>', clear_html_addons).group(1)
words_list = words_list + words_only.split(' ')
for word in words_list:
results.append(word.lower())
base_url = 'https://zedpuzzle.neocities.org/alphabet/rightway/'
for result in results:
url_to_check = base_url+result
print("<==============================>")
print(f"Trying {result}")
response = requests.get(url_to_check)
print(response)
print("<==============================>")
if '404' not in response.text:
print("FOUND RESULT")
sys.exit(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment