How to retreive db credentials?

How to view the encrypted Ezeelogin database password  from Ezeelogin configuration file  ( /usr/local/etc/ezlogin/ez.conf ) version 2 ?

The DB password are encrypted in Ezeelogin configuration (From ezeelogin version version 7.17 for better security . The new configuration  file would  look as follows.

cver 2   <--- This tell the configuration file version
system_folder /var/www/ezlogin/
www_folder /var/www/html/ezlogin/
uri_path /ezlogin/
force_https no
db_host 192.168.0.196
db_port 3306
db_name ezlogin_dryq
db_user ezlogin_yvlzh
db_pass vHO2mUQj7Zg3/EhrhccngvPJTsM8ZY/RTtEmByqiq9Y0BugANykui7ZeFfpxKDWYycJnluq9XD4xTR3wJddHe29IVy0m0wbuMcb6Econ/n4=   <-- the Encrypted Database password
db_prefix vdizq_
cookie_encryption_key XYEO8RM5KQgc3kX6XcTuDgx1UkiQOS/pZ5Yi9fdm38HkAK7eqzdkG6FVLRnPC+1Oh6WQIaVzdqilkPqKnz7lApeY3XVMpNSYfz9+wFZXI0E=
cookie_name rvn
cookie_path /ezlogin/
admin_user ezadmin
mysql_encrypt no

 

In order to  decrypt the database password from ezeelogin configuration file, run the following command on the jump server

[root@localhost ~]# php /usr/local/ezlogin/eztool.php -show_db_credentials

 After executing the above command you can see the db credentials as  shown below:

 

[root@localhost ~]# php /usr/local/ezlogin/eztool.php -show_db_credentials

                   _             _
  ___ _______  ___| | ___   __ _(_)_ __
 / _ \_  / _ \/ _ \ |/ _ \ / _` | | '_ \
|  __// /  __/  __/ | (_) | (_| | | | | |
 \___/___\___|\___|_|\___/ \__, |_|_| |_|
                           |___/


#########################
# Ezeelogin Tool        #
#########################

Checking environment... done
Checking license... done (0)

Enter the Ezeelogin administrator password: Admin!2345
Database credentials:
Host: localhost
Port/Socket: /var/lib/mysql/mysql.sock
Database: ezlogin_phmxgg
Username: ezlogin_pyy
Password: P4&][*V]Qx3jn3n7A6@p6p7]G
Table Prefix: vbsrc_

5 (1)
Article Rating (1 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed