Skip to content

Instantly share code, notes, and snippets.

@Gavriel770U
Created August 8, 2024 20:55
Show Gist options
  • Save Gavriel770U/b93b11280ae03b42116c91003e0b5835 to your computer and use it in GitHub Desktop.
Save Gavriel770U/b93b11280ae03b42116c91003e0b5835 to your computer and use it in GitHub Desktop.
ZED puzzle level 18 birthday bruteforcer
import requests
import sys
base_url: str = 'https://zedpuzzle.neocities.org/craters/'
months_data: dict = {
'January' : 31,
'February' : 29,
'March' : 31,
'April' : 30,
'May' : 31,
'June' : 30,
'July' : 31,
'August' : 31,
'September' : 30,
'October' : 31,
'November' : 30,
'December' : 31,
}
for month in months_data.keys():
for day in range(1, months_data[month]+1):
print(f"====== Trying {month.lower()}{day} =======")
response = requests.get(base_url+month.lower()+str(day))
print(response)
print(response.content)
if (not("Not Found" in response.content.decode('utf-8'))) and not('February'==month and 18==day):
print("FOUND!!!!!")
sys.exit(1)
print("===========================================")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment