Posted By

tobewan on 10/27/09


Tagged

server commands dv Dedicated-Virtual


Versions (?)

Get Domain passwords w/o logging into MySQL


 / Published in: Bash
 

  1. echo "SELECT CONCAT_WS('@',mail.mail_name,domains.name),accounts.password
  2. FROM domains,mail,accounts
  3. WHERE domains.id=mail.dom_id AND accounts.id=mail.account_id
  4. ORDER BY domains.name ASC,mail.mail_name ASC;" | mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -t

Report this snippet  

You need to login to post a comment.