Skip to content

Instantly share code, notes, and snippets.

@Gavriel770U
Created August 25, 2024 11:59
Show Gist options
  • Save Gavriel770U/be2f520f7bd087fc4c0ad428a94167e2 to your computer and use it in GitHub Desktop.
Save Gavriel770U/be2f520f7bd087fc4c0ad428a94167e2 to your computer and use it in GitHub Desktop.
Bruteforce Code for Zed Alphabet level j
import requests
import re
import sys
skip = 'EJZW'
words_list = []
results = []
urls = ['https://www.bestwordlist.com/p/s/1/words7letterssixthletters.htm',
'https://www.bestwordlist.com/p/s/1/words7letterssixthletterspage2.htm',
'https://www.bestwordlist.com/p/s/1/words7letterssixthletterspage3.htm',
'https://www.bestwordlist.com/p/s/1/words7letterssixthletterspage4.htm',
'https://www.bestwordlist.com/p/s/1/words7letterssixthletterspage5.htm',
]
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:
found = False
for char in skip:
if char in word:
found = True
if not found:
results.append(word.lower())
base_url = 'https://zedpuzzle.neocities.org/alphabet/'
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