• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to reveal ftp passwords

M

MariosM

Guest
Hello,

I'm trying to make a sql query to reveal ftp passwords of plesk.

I yse this one

SELECT d.name, s.login, a.password
FROM domains d, sys_users s, accounts a, clients cl
WHERE a.id=s.account_id
AND cl.id=d.id
AND d.cl_id=cl.id
ORDER BY d.name, s.login;

it shows the logins and passwords but it shows the same domain again and again.

Any suggestion ?
 
Hi,

your WHERE clause doesn't connect the tables, so that you will get a unique entry for every row. Your SELECT statement shows all possible ways.

You must connect those tables with a INNER JOIN clause, so that they will be evaluated depending on each other.
But there is a mistake in your thinking, so I can't translate it.

You read the tables domains, sys_users, accounts and clients.

domains is connected to clients (cl_id <=> id)
accounts is connected to sys_users (id <=> account_id)

but where is the missing connection?
I think it is clients to sys_users (via sys_users_id <=> id)??

Haven't looked into the tables by now.
 
Loeffel , thank you for your answer,

Hi,
but where is the missing connection?
I think it is clients to sys_users (via sys_users_id <=> id)??

I cant find any connection between sys_users and clients,
I take a client for example , and between these two tables, all the columns of this client are totaly different,
not any sinle ID or any other number matches :(
 
Back
Top