Files
hive/test_current_password.py
anthonyrawlins 268214d971 Major WHOOSH system refactoring and feature enhancements
- Migrated from HIVE branding to WHOOSH across all components
- Enhanced backend API with new services: AI models, BZZZ integration, templates, members
- Added comprehensive testing suite with security, performance, and integration tests
- Improved frontend with new components for project setup, AI models, and team management
- Updated MCP server implementation with WHOOSH-specific tools and resources
- Enhanced deployment configurations with production-ready Docker setups
- Added comprehensive documentation and setup guides
- Implemented age encryption service and UCXL integration

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-27 08:34:48 +10:00

38 lines
976 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",
"whooshadmin",
"whooshadmin123",
"password",
"admin123",
"whoosh",
"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.")