Reset/crack admin passwords for common programs (discuz, ecshop, shopex, dedecms, etc.)
Published: 2014-12-03
Tutorial for resetting forgotten backend passwords for common programs (discuz, ecshop, shopex, dedecms, wordpres, etc.)
**1. Discuz**
(1) Use the official discuz tools to reset; multiple versions are included.
http://www.discuz.net/thread-3339530-1-1.html
(2) In the `uc_server/data/config.inc.php` file,
```php
define('UC_FOUNDERPW', '256955f2e034sad74f0e2953572ea360');
define('UC_FOUNDERSALT', '217804');
```
Replace with
```php
define('UC_FOUNDERPW', '047099adb883dc19616dae0ef2adc5b6');
define('UC_FOUNDERSALT', '311254');
```
After modification, the Ucenter founder password becomes: `123456789`. At this point, you can log in to Ucenter, go to user management, and change the administrator account password to whatever you want.
**2. Ecshop**
Create a new `findpass.php` and place it in the root directory. Save the following code into `findpass.php`:
```php
if(isset($_GET['password'])) {
define('IN_ECS', true);
require(dirname(__FILE__) . '/includes/init.php');
$username=trim($_GET['username']);
$password=trim($_GET['password']);
$sql="Select `ec_salt` FROM ". $ecs->table('admin_user') ."Where user_name = '". $username."'";
$ec_salt =$db->getOne($sql);
$sqlu= "Update " . $ecs->table('admin_user') . " SET password = '". md5(md5($password).$ec_salt) . "' Where user_name='".$username."'";
mysql_query($sqlu);
print "
Administrator has been changed to $username , password changed to ".$_GET[password].""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name: `ecs_admin_user` Change field `user_name` to `admin`; change field `password` to `e769f6a1958f90fb8500daa5ad0bd698`; change `ec_salt` to `9708`. The password can then be reset to `123456`. Also, older versions do not have the `salt` field; just modify the `password` field. The password is encrypted with md5, md5 32 encryption. Password: `e10adc3949ba59abbe56e057f20f883e=123456` **3. Shopex** Create a new `findpass.php` and place it in the root directory. Save the following code into `findpass.php`: ```php Administrator has been changed to $username , password is ".$_GET[password].""; } else{ print mysql_error(); } mysql_close($link); } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `operators`; change field `username` to `admin`; change `userpass` to `e10adc3949ba59abbe56e057f20f883e`. The password can then be reset to `123456`. **4. Dedecms** Create a new `findpass.php` and place it in the root directory. Save the following code into `findpass.php`: ```php ExecuteNoneQuery($query); print "
Administrator has been changed to $username , password changed to ".$password.""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `dede_admin`; change field `userid` to `admin`; change field `pwd` to `c3949ba59abbe56e057f`. The password will be `123456`. **5. wordpress — two reset methods** **Method ①:** Create a new `findpass.php`, place it in the root directory, and save the following code into `findpass.php`: ```php HashPassword($password1); $wpdb->query("UPDATE $wpdb->users SET user_pass='$password' WHERE user_login='$username'"); print "
Administrator has been changed to $username , password changed to ".$_GET[password].""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. **Method ②:** Method to modify in the database: New version (6.x) wordpress corresponds to table name `wp_user`; change field `user_login` to `admin`; change field `user_pass` to `$1$rSziHLDY$399k.JuJsy.oHVp5lquJC.` The password is `123456`. Older versions (5.x, etc.) wordpress table name `wp_user`; change field `user_login` to `admin`; change field `user_pass` to `$P$BH2J72eCYZydM7LFVAus1BjOG.XWs8.` The password is `123456`. Also, for old versions without special encryption, change the password field to `e10adc3949ba59abbe56e057f20f883e`, which is `123456`. **6. 多多返利v8** ```php select('duoduo2010','id,adminname','1'); mysql_select_db(DB_NAME); $user=$username; $pass=$password; $data=array('adminname'=>$username,'adminpass'=>deep_jm($pass)); $duoduo->update('duoduo2010',$data,'id="'.$re['id'].'"'); print "
Administrator has been changed to".$user." , password is ".$pass.""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `duoduo_duoduo2010` Change field `adminname` to `admin`; change field `adminpass` to `910c837500c454f26d116680410243c2`. The password can then be reset to `123456`. Also, for old versions before v7 without special encryption, change the password field to `e10adc3949ba59abbe56e057f20f883e=123456`. **7. phpweb** ```php Administrator has been changed to$username , password is ".$_GET[password].""; } else{ print mysql_error(); } mysql_close($link); } ?> ``` Save the above code, rename the file to `findpass.php`, and upload it to the `wwwroot` directory. Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `dev_base_admin` Change field `user` to `admin`; change field `password` to `e10adc3949ba59abbe56e057f20f883e`. The password can then be reset to `123456`. **8. pigcms (小猪CMS) method for resetting a forgotten administrator password:** Open the database table `_user` through phpmyadmin in the control panel, as shown in the figure.   The password is md5-encrypted (32-bit). Click Edit, and change the original `password` field value to: `21232f297a57a5a743894a0e4a801fc3`. Then the password will be reset to `admin`. **9. phpcms v9 method for resetting a forgotten administrator password:** Open the corresponding database management, find the `xxx_admin` table (`xxx_` is the table prefix), and click Edit. Modify the field at position `1` to: `62d2ff1e3d42334e6216d628a5051c08` Modify the field at position `2` to: `7YIwnY` After modification, click Execute to save.  The modified password will be reset to `phpcms`. Please log in to the backend and then change the password again. **10. metinfo** 米拓cms can refer to the official instructions: https://www.metinfo.cn/download/54.html **11. 帝国cms reset administrator password** [Download reset script](http://filedown.myhostadmin.net/帝国cms重置密码.zip), extract it, upload the `resetuser.php` file to the `/e/update/` directory, and then visit `www.xxx.com//e/update/resetuser.php` to dynamically reset it (replace `xxx.com` with your own domain). **12. pbootcms reset password** Download the tool to reset. Download address: [PB password reset tool](https://pan.baidu.com/s/15E-1IqmR_W1o1nWuSUP0Ww?pwd=cddh) (this tool comes from the Internet and is not provided by our company). Upload the file to the website root directory, then visit `http://yourdomain/resetpw.php` to reset the password. Remember to delete the file after retrieving the password.
Administrator has been changed to $username , password changed to ".$_GET[password].""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name: `ecs_admin_user` Change field `user_name` to `admin`; change field `password` to `e769f6a1958f90fb8500daa5ad0bd698`; change `ec_salt` to `9708`. The password can then be reset to `123456`. Also, older versions do not have the `salt` field; just modify the `password` field. The password is encrypted with md5, md5 32 encryption. Password: `e10adc3949ba59abbe56e057f20f883e=123456` **3. Shopex** Create a new `findpass.php` and place it in the root directory. Save the following code into `findpass.php`: ```php Administrator has been changed to $username , password is ".$_GET[password].""; } else{ print mysql_error(); } mysql_close($link); } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `operators`; change field `username` to `admin`; change `userpass` to `e10adc3949ba59abbe56e057f20f883e`. The password can then be reset to `123456`. **4. Dedecms** Create a new `findpass.php` and place it in the root directory. Save the following code into `findpass.php`: ```php ExecuteNoneQuery($query); print "
Administrator has been changed to $username , password changed to ".$password.""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `dede_admin`; change field `userid` to `admin`; change field `pwd` to `c3949ba59abbe56e057f`. The password will be `123456`. **5. wordpress — two reset methods** **Method ①:** Create a new `findpass.php`, place it in the root directory, and save the following code into `findpass.php`: ```php HashPassword($password1); $wpdb->query("UPDATE $wpdb->users SET user_pass='$password' WHERE user_login='$username'"); print "
Administrator has been changed to $username , password changed to ".$_GET[password].""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. **Method ②:** Method to modify in the database: New version (6.x) wordpress corresponds to table name `wp_user`; change field `user_login` to `admin`; change field `user_pass` to `$1$rSziHLDY$399k.JuJsy.oHVp5lquJC.` The password is `123456`. Older versions (5.x, etc.) wordpress table name `wp_user`; change field `user_login` to `admin`; change field `user_pass` to `$P$BH2J72eCYZydM7LFVAus1BjOG.XWs8.` The password is `123456`. Also, for old versions without special encryption, change the password field to `e10adc3949ba59abbe56e057f20f883e`, which is `123456`. **6. 多多返利v8** ```php select('duoduo2010','id,adminname','1'); mysql_select_db(DB_NAME); $user=$username; $pass=$password; $data=array('adminname'=>$username,'adminpass'=>deep_jm($pass)); $duoduo->update('duoduo2010',$data,'id="'.$re['id'].'"'); print "
Administrator has been changed to".$user." , password is ".$pass.""; } ?> ``` Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `duoduo_duoduo2010` Change field `adminname` to `admin`; change field `adminpass` to `910c837500c454f26d116680410243c2`. The password can then be reset to `123456`. Also, for old versions before v7 without special encryption, change the password field to `e10adc3949ba59abbe56e057f20f883e=123456`. **7. phpweb** ```php Administrator has been changed to$username , password is ".$_GET[password].""; } else{ print mysql_error(); } mysql_close($link); } ?> ``` Save the above code, rename the file to `findpass.php`, and upload it to the `wwwroot` directory. Visit `http://yourdomain/findpass.php` and enter the administrator account and the password to reset. Method to modify in the database: Table name `dev_base_admin` Change field `user` to `admin`; change field `password` to `e10adc3949ba59abbe56e057f20f883e`. The password can then be reset to `123456`. **8. pigcms (小猪CMS) method for resetting a forgotten administrator password:** Open the database table `_user` through phpmyadmin in the control panel, as shown in the figure.   The password is md5-encrypted (32-bit). Click Edit, and change the original `password` field value to: `21232f297a57a5a743894a0e4a801fc3`. Then the password will be reset to `admin`. **9. phpcms v9 method for resetting a forgotten administrator password:** Open the corresponding database management, find the `xxx_admin` table (`xxx_` is the table prefix), and click Edit. Modify the field at position `1` to: `62d2ff1e3d42334e6216d628a5051c08` Modify the field at position `2` to: `7YIwnY` After modification, click Execute to save.  The modified password will be reset to `phpcms`. Please log in to the backend and then change the password again. **10. metinfo** 米拓cms can refer to the official instructions: https://www.metinfo.cn/download/54.html **11. 帝国cms reset administrator password** [Download reset script](http://filedown.myhostadmin.net/帝国cms重置密码.zip), extract it, upload the `resetuser.php` file to the `/e/update/` directory, and then visit `www.xxx.com//e/update/resetuser.php` to dynamically reset it (replace `xxx.com` with your own domain). **12. pbootcms reset password** Download the tool to reset. Download address: [PB password reset tool](https://pan.baidu.com/s/15E-1IqmR_W1o1nWuSUP0Ww?pwd=cddh) (this tool comes from the Internet and is not provided by our company). Upload the file to the website root directory, then visit `http://yourdomain/resetpw.php` to reset the password. Remember to delete the file after retrieving the password.
