read / recover ftp password from a plesk database

read / recover ftp password from a plesk database

 

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -e “use psa; select accounts.password from accounts INNER JOIN sys_users ON accounts.id=sys_users.account_id WHERE sys_users.login=’xxxx’;”

specify sys_users.login=’xxxx’  ( user login xxxx )

3 Responses so far.

  1. Why complicated a simple INNER JOIN when you could just go with one simple WHERE clause?

    select login,password FROM sys_users,accounts WHERE accounts.id=sys_users.account_id AND sys_users.login=’user_name’;

Leave a Reply

Your email address will not be published. Required fields are marked *

five × 1 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.