msfconsole安装配置

使用
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
  chmod 755 msfinstall && \
  ./msfinstall
安装msfconsole,这是一条语句。\ 代表接上条命令。
安装之后需要安装postgresql 数据库,apt update && apt install postgresql  
安装postgresql 数据库之后默认会添加postgres用户,使用passwd postgres 修改postgres账号的密码。
修改之后使用su postgres切换到postgres用户。
 创建数据库用户 createuser msf -P -S -R -D
创建数据库 createdb -O msf msf  -O 大写的o 代表数据库所属用户为msf 之后的msf代表所要创建的数据库名称。
使用\q
退出数据库。 
su 切换到root用户。
msfconsole 启动msf
db_status查看当前数据库的连接状态。
db_connect msf:[email protected]/msf  第一个msf数据库的用户名,第二个密码,第三个所要连接的数据库。

在后台重建数据库模块。 msf会在后台初始化数据库。
waiting...
等一会之后search ms08-067 不会出现use slow search了。

你可能感兴趣的:(linux使用)