403Webshell
Server IP : 51.89.169.208  /  Your IP : 18.222.164.159
Web Server : Apache
System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64
User : yellowleaf ( 1019)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/yellowleaf/public_html/admin/all_script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yellowleaf/public_html/admin/all_script/update_users_password.php
<?php
ini_set('max_execution_time', '300'); 
$path  = $_SERVER['DOCUMENT_ROOT'];
include_once $path . '/connect_db.php';

$res_members = $connect->query("SELECT * FROM `members` WHERE `done` = 0 ORDER BY `memberid` ASC LIMIT 1000");

if ($res_members->num_rows > 0) {
    // echo "<pre>";
    while($row = $res_members->fetch_array(MYSQLI_ASSOC)){
        $id = $row["memberid"];
        $epass = $row["epass"];
        $encpass = password_hash($epass, PASSWORD_DEFAULT);
        $connect->query("UPDATE `members` SET `epass` = '$encpass', `done` = 1 WHERE `memberid` = '$id'") || die("UPdate error: ".$connect->error);
        echo "User: <b>$id</b> updated done <br>";
    }
    echo '<meta http-equiv="refresh" content="3">';
}else{
    echo "All completed";
}



?>

Youez - 2016 - github.com/yon3zu
LinuXploit