如何在Ubuntu下安装Metasploit

如何在Ubuntu下安装Metasploit,第1张

方法/步骤

安装metasploit

1、curl h rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdateerb > msfinstall

2、chmod 755 msfinstall

3、/msfinstall

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

安装postgresql数据库

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

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

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

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

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

msf使用数据库

1、msfconsole //启动msf

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

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

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

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

建立一个普通用户

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

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

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

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

sure : if you want to download it from "ht tp" with thunder and so on , please open

then move to the bottom , get it !!

如果是装在本机上,从开始菜单——所有程序——MySQL——Mysql Server 50,打开MySQL Command Line Client,输入用户root的密码,回车;输入use TheOne 就连接上这个数据库了

以上就是关于如何在Ubuntu下安装Metasploit全部的内容,包括:如何在Ubuntu下安装Metasploit、msfconsole为什么要连接数据库、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/sjk/9753417.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-05-01
下一篇2023-05-01

发表评论

登录后才能评论

评论列表(0条)

    保存