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>
This commit is contained in:
38
test_current_password.py
Normal file
38
test_current_password.py
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/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.")
|
||||
Reference in New Issue
Block a user