Docker版kali内安装metasploit

原文链接:http://securityer.lofter.com/post/1d0f3ee7_dd9fd9c

1.下载原版kali Docker镜像

MacPC:~ liuxin$ docker pull kalilinux/kali-linux-docker

2.进入docker kali 容器内

MacPC:~ liuxin$ docker run -it --name=kali  kalilinux/kali-linux-docker

3.安装metasploit

root@3c651829b2f2:/# apt-get -y update ; apt-get -y --force-yes install ruby metasploit-framework

4.启动metasploit

启动msf前应先初始化数据库

root@3c651829b2f2:/# msfdb init

[ ok ] Starting PostgreSQL 9.6 database server: main.

Creating database user 'msf'

Enter password for new role: 

Enter it again: 

Creating databases 'msf' and 'msf_test'

Creating configuration file in /usr/share/metasploit-framework/config/database.yml

Creating initial database schema

以后使用时只需要执行msfdb start执行

root@3c651829b2f2:/# msfconsole

                                                  

 

MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM

MMMMMMMMMMM                MMMMMMMMMM

MMMN$                           vMMMM

MMMNl  MMMMM             MMMMM  JMMMM

MMMNl  MMMMMMMN       NMMMMMMM  JMMMM

MMMNl  MMMMMMMMMNmmmNMMMMMMMMM  JMMMM

MMMNI  MMMMMMMMMMMMMMMMMMMMMMM  jMMMM

MMMNI  MMMMMMMMMMMMMMMMMMMMMMM  jMMMM

MMMNI  MMMMM   MMMMMMM   MMMMM  jMMMM

MMMNI  MMMMM   MMMMMMM   MMMMM  jMMMM

MMMNI  MMMNM   MMMMMMM   MMMMM  jMMMM

MMMNI  WMMMM   MMMMMMM   MMMM#  JMMMM

MMMMR  ?MMNM             MMMMM.dMMMM

MMMMNm`?MMM             MMMM`dMMMMM

MMMMMMN  ?MM             MM?  NMMMMMN

MMMMMMMMNe                 JMMMMMNMMM

MMMMMMMMMMNm,            eMMMMMNMMNMM

MMMMNNMNMMMMMNx        MMMMMMNMMNMMNM

MMMMMMMMNMMNMMMMm+..+MMNMMNMNMMNMMNMM

        http://metasploit.com

 

 

Easy phishing: Set up email templates, landing pages and listeners

in Metasploit Pro -- learn more on http://rapid7.com/metasploit

 

       =[ metasploit v4.13.14-dev                         ]

+ -- --=[ 1613 exploits - 915 auxiliary - 279 post        ]

+ -- --=[ 471 payloads - 39 encoders - 9 nops             ]

+ -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]

 

msf > db_status

[*] postgresql connected to msf

延伸

安装searchsploit

root@3c651829b2f2:~#  apt update && apt -y install exploitdb

你可能感兴趣的:(安装配置)