deepin安装metasploit

本文介绍了如何在Linux环境下安装Metasploit渗透测试框架及PostgreSQL数据库,并详细讲解了配置Metasploit使用本地数据库的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

[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

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

 

[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                                                                //查看数据库连接状态

 

转载于:https://www.cnblogs.com/nul1/p/8455241.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值