25 lines
912 B
Python
25 lines
912 B
Python
import sqlite3
|
|
from werkzeug.security import check_password_hash
|
|
|
|
conn = sqlite3.connect('users.db')
|
|
c = conn.cursor()
|
|
c.execute("SELECT username, password, is_admin FROM users WHERE is_admin = 1")
|
|
admins = c.fetchall()
|
|
print(f"Admins found: {len(admins)}", flush=True)
|
|
|
|
candidates = [
|
|
'dmh', 'dmh123', 'admin', 'admin123', 'dmh@123', 'password', 'password123',
|
|
'dmh2024', 'dmh2025', 'dmh2026', 'dmhospital', 'nirajAi26@DMH', 'TestPass123!', '123456',
|
|
'dmh@dmh', 'Dmh@123', 'Dmh123', 'dmh@2024', 'dmh@2025', 'dmh@2026',
|
|
'admin@123', 'Admin@123', 'Admin123', 'Admin', 'root', 'root123'
|
|
]
|
|
|
|
for uname, phash, is_adm in admins:
|
|
print(f"Checking admin '{uname}'...", flush=True)
|
|
matched = None
|
|
for cand in candidates:
|
|
if check_password_hash(phash, cand):
|
|
matched = cand
|
|
break
|
|
print(f"Result -> Username: '{uname}', Password: '{matched}'", flush=True)
|