docker安装Kali linux

1.拉取Kali linux镜像
docker pull kalilinux/kali-linux-docker
2.运行Kali linux容器
docker run -it --name=kali kalilinux/kali-linux-docker
3.在kali中安装全部工具
vi /etc/apt/sources.list

deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib

4.安装metasploit
apt-get -y update ; apt-get -y --force-yes install ruby metasploit-framework
apt-get update && apt-get upgrade
apt-get install kali-linux-all
5.在kali中安装SSH远程连接服务
apt-get install ssh
6.为root用户设置密码
passwd
7.安装openssh-server服务
apt-get install openssh-server
8.配置ssh文件
vim /etc/ssh/sshd_config
PermitRootLogin yes
PermitEmptyPasswords no
9.重启SSH服务
service ssh restart
10.安装net-tools
apt-get install net-tools

你可能感兴趣的:(docker安装Kali linux)