• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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