#!/usr/bin/env python3 """ Test what the current admin password actually is """ from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") # Current hash from database current_hash = "$2b$12$EjRUdYXNPgnveP6mgFY00uOj.fBp6u/9ZKqCZPdL4RK7QWg1Tpvp2" # Common admin passwords to test test_passwords = [ "admin", "hiveadmin", "hiveadmin123", "password", "admin123", "hive", "123456", "admin@123", "", # empty password ] print("Testing current hash against common passwords:") print(f"Hash: {current_hash}") print() for password in test_passwords: result = pwd_context.verify(password, current_hash) status = "āœ… MATCH!" if result else "āŒ" print(f"{status} '{password}'") if result: print(f"šŸŽÆ FOUND IT! Current password is: '{password}'") break else: print("\nā“ None of the common passwords matched. The current password is something else.")