Finding database passwords in PHP code?
Patton Echols
p.echols at comcast.net
Fri Jan 20 17:34:35 UTC 2012
Not directly a Ubuntu question, but hopefully one of you kind folks can help
I am helping to migrate a website from one server to another. I do NOT
have shell access to either server. What I have is the webhost's
administration panel. In order to do the migration, I need to create
the mysql databases in the new server using the existing passwords.
Problem is that the person who used to admin the website is no longer
available and left no info.
First question:
If I download the PHP for the website, what would I search for in order
to find the passwords?
(would that work?)
Second Question: If the answer to question # 1 is, no that won't work.
I can reset the database passwords. Is there a standard way in PHP for
coding the passwords into the code? In other words resetting the
passwords in the PHP as well?
Thanks
More information about the ubuntu-users
mailing list