3306 MySQL

  • nmap -n -v -sV -Pn -p 3306 –script=mysql-info,mysql-audit,mysql-enum,mysql-databases,mysql-dump-hashes,mysql-empty-password,mysql-users,mysql-query,mysql-variables,mysql-vuln-cve2012-2122 IP
  • mysql –h IP -u root -p
    • start mysql if errors (ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2 “No such file or directory”))
      • sudo /etc/init.d/mysql start
    • show databases;
    • show tables;
    • use tablename;
    • describe table;
    • select table1, table2 from tablename;

Advertisements