get protected directory user and password

one query to grab the user and pass from the Plesk psa database:


SELECT pd.login, a.password, d.name, dirs.path FROM accounts a, pd_users pd, protected_dirs dirs, domains d WHERE dirs.path = 'admin' AND a.id = pd.account_id AND pd.pd_id = dirs.id AND dirs.dom_id = d.id AND d.id = DOMAIN_ID;




No Comments


You can leave the first : )



Leave a Reply

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