Site is Under Maintenance
Please come back again in...
00 Days
00 Hours
00 Minutes
00 Seconds

How to Extract Passwords From a Plesk Server

For Plesk servers (versions prior to 11), FTP usernames and passwords are stored in cleartext within the database. To get a quick overview of all FTP accounts and identify any potentially weak passwords, you can use the following SQL query directly from your command line if you have access:

[root@Plesk /]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e "use psa; select sys_users.home, sys_users.login, accounts.password from accounts INNER JOIN sys_users ON  accounts.id=sys_users.account_id;"

This will give you a nice overview of all usernames, passwords, and the domain name. Here's what it looks like:

+------------------------------------------------------------+
| home                               | login    | password   |
+------------------------------------------------------------+
| /var/www/vhosts/domainname1.com    | mylogin  | mypass123  |
| /var/www/vhosts/mydomain.com       | myftp    | unsafe567  |
| /var/www/vhosts/anotherdomain.com  | ftpuser  | secret     |  
+------------------------------------------------------------+

A nice overview with all of your identified domains, usernames, and passwords for FTP. I hope you found this useful!

Rate This Article

Thanks for reading: How to Extract Passwords From a Plesk Server, Sorry, my English is bad:)

Getting Info...

About the Author

I'm Aevon...Just a gal with an insane passion for all things cybersecurity. 17 years in the industry and still love what I'm doing.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.