diff --git a/pentesting/pentesting-mysql.md b/pentesting/pentesting-mysql.md index e3dc8cd9..850bd5a5 100644 --- a/pentesting/pentesting-mysql.md +++ b/pentesting/pentesting-mysql.md @@ -544,3 +544,26 @@ x$waits\_global\_by\_latency {% endtab %} {% endtabs %} +## HackTricks Automatic Commands + +``` +Protocol_Name: MySql #Protocol Abbreviation if there is one. +Port_Number: 3306 #Comma separated if there is more than one. +Protocol_Description: MySql #Protocol Abbreviation Spelled out + +Name: Notes +Description: Notes for MySql +Note: """ +MySQL is a freely available open source Relational Database Management System (RDBMS) that uses Structured Query Language (SQL). + +https://book.hacktricks.xyz/pentesting/pentesting-mysql +""" + +Name: Nmap +Description: Nmap with MySql Scripts +Command: """nmap --script=mysql-databases.nse,mysql-empty-password.nse,mysql-enum.nse,mysql-info.nse,mysql-variables.nse,mysql-vuln-cve2012-2122.nse {IP} -p 3306""" + +Name: MySql +Description: Attempt to connect to mysql server +Command: """mysql -h {IP} -u {Username}@localhost""" +```