Files
hive/test_current_password.py
anthonyrawlins b6bff318d9 WIP: Save current work before CHORUS rebrand
- Agent roles integration progress
- Various backend and frontend updates
- Storybook cache cleanup

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 02:20:56 +10:00

38 lines
970 B
Python

#!/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.")