<?php
require_once __DIR__ . '/../includes/db.php';

$users = fetchAll("SELECT username, password FROM users");
$passwords_to_try = ['password', '123456', 'admin', 'superadmin', 'owner', 'nexova123', 'nexcore', 'admin123'];

foreach ($users as $user) {
    foreach ($passwords_to_try as $p) {
        if (password_verify($p, $user['password'])) {
            echo "User: {$user['username']} | Password: {$p}\n";
            continue 2;
        }
    }
}
