1.下载Metasploitable2靶场
Metasploitable2官网:https://information.rapid7.com/metasploitable-download.html
2.在VM上安装Metasploitable2
解压下载好的安装包,点击这个文件,现在VM打开
3.启动Metasploitable2靶场
默认账号和密码:msfadmin
(密码输入不会显示)
3.修改root账号密码
用默认账号密码登陆后执行命令: sudo passwd root
先输入当前用户密码后修改密码
第一次输入root新密码,第二次是确认root新密码
切换到root账号:su root