ubuntu安装metasploit

 时间:2026-02-12 09:50:26

1、安装metasploit

1、curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall

2、chmod 755 msfinstall

3、./msfinstall

依次执行上面的三条命令即可安装成功

ubuntu安装metasploit

2、安装postgresql数据库

安装数据库的时候会自动创建系统用户postgres,数据库用户postgres,数据库postgres

1、apt-get install postgresql    //安装postgresql数据库

2、su - postgres                       //切换到postgres用户

3、psql                                     //登陆postgresql数据库,首次登陆没有密码

4、\password postgres             //修改数据库用户postgres的密码

3、msf使用数据库

1、msfconsole                                                              //启动msf

2、db_connect postgres:hehehe@127.0.0.1/test         //用户名,密码,地址,自己随意编造的名字。

3、db_status                                                                //查看数据库连接状态

ubuntu安装metasploit

4、安装完成,可以开始你的metasploit渗透之路了!!!

5、参考:如果希望添加新的用户

建立一个普通用户

useradd -m feng                    //feng是我的用户名,你可以改成任意用户名。

passwd feng                          //设置一下新建的用户名的密码。

usermod -a -G sudo feng    //修改用户的附加组为超级管理组。

chsh -s /bin/bash feng        //设置用户使用的命令控制台。

6、sure : if you want to download it from "http" with thunder and so on , please open             https://apt.metasploit.com/

then move to the bottom , get it !!

  • 天翼云盘下载任务怎么显示在排队?
  • 如何用Visual Studio探查项目消耗CPU的情况
  • win7如何禁用电脑服务Base Filtering Engine
  • 西红柿西瓜汁
  • Word修改文档时老是替换原文字,怎么重新编辑?
  • 热门搜索
    如何查看微信聊天记录 小米手机如何截图 cpu风扇转速怎么调 cnc是什么意思 如何适应大学生活 qq怎么查看登陆记录 生活万花筒作文 河北机电职业技术学院怎么样 如何做鱼好吃 如何去胎毒