A-A+

kali linux2.0 启动Metasploit

2016年04月16日 13:42 学习笔记 暂无评论 共1602字 (阅读3,904 views次)

【注意:此文章为博主原创文章!转载需注意,请带原文链接,至少也要是txt格式!】

首先第一步:service postgresql start

首先启动数据库,然后执行第二步。

第二步:msfdb start

再次启动数据库,这个是MSF(Metasploit)的数据库了。

可以用 ss -ant  的输出来检验PostgreSQL是否在运行,然后确认5432端口处于listening状态。
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 :::22 :::*8
LISTEN 0 128 *:22 *:*3
LISTEN 0 128 127.0.0.1:5432 *:*4
LISTEN 0 128 ::1:5432 :::*

第三部:msfconsole

直接打开MSF运行它。这就OK啦。然后剩下就是msfconsole update更新什么的。

 

在Kali运行msfconsole:现在PostgreSQL 和 Metasploit服务都运行了,可以运行 msfconsole,然后用 db_status 命令检验数据库的连通性。
msf > db_status
[*] postgresql connected to msf3
msf >
配置Metasploit随系统启动运行:如果你想PostgreSQL和Metasploit在开机时运行,你可以使用update-rc.d启用服务。
update-rc.d postgresql enable
update-rc.d metasploit enable

msfupdate 为更新命令

 

apt-get update

apt-get upgrade

apt-get dist-upgrade

 

以下是官方原文

Metasploit Framework

In keeping with the Kali Linux Network Services Policy, no network services, including database services, run on boot as a default, so there are a couple of steps that need to be taken in order to get Metasploit up and running with database support.
Start the Kali PostgreSQL Service

Metasploit uses PostgreSQL as its database so it needs to be launched first.
service postgresql start

You can verify that PostgreSQL is running by checking the output of ss -ant and making sure that port 5432 is listening.
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 :::22 :::*
LISTEN 0 128 *:22 *:*
LISTEN 0 128 127.0.0.1:5432 *:*
LISTEN 0 128 ::1:5432 :::*
Initialise the Metasploit PostgreSQL Database

With PostgreSQL up and running, we next need to create and initialize the msf database.
msfdb init
Launch msfconsole in Kali

Now that the PostgreSQL service is up and running and the database is initialized, you can launch msfconsole and verify database connectivity with the db_status command as shown below.
msfconsole
msf > db_status
[*] postgresql connected to msf3
msf >

布施恩德可便相知重

微信扫一扫打赏

支付宝扫一扫打赏

×

给我留言