手动安装
准备一台linux系统的VPS或虚拟机,首次使用建议虚拟机安装,推荐使用ubuntu系统
切换到 root 用户执行命令
su root
sysctl -w vm.max_map_count=262144
ulimit -n 65535
启动 Viper
cd $VIPER_DIR
docker-compose up -d
Kali 安装 docker
apt-get update
apt-get install -y apt-transport-https ca-certificates
apt-get install dirmngr
curl -fsSL https://mirrors.tuna.tsinghua.edu.cn/docker-
ce/linux/debian/gpg | sudo apt-key add -
echo 'deb https://mirrors.tuna.tsinghua.edu.cn/docker-
ce/linux/debian/ buster stable' | sudo tee
/etc/apt/sources.list.d/docker.list
apt-get update
apt install docker-ce
安装 docker-compose
apt install docker-compose
或者
curl -L
https://get.daocloud.io/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` >
/usr/bin/docker-compose
chmod +x /usr/bin/docker-compose
设置安装目录
export VIPER_DIR=/root/VIPER
1
生成安装目录,并进入安装目录
mkdir -p $VIPER_DIR && cd $VIPER_DIR
生成 docker-compose.yml
tee docker-compose.yml <<-'EOF'
version: "3"
services:
viper:
image: registry.cn-shenzhen.aliyuncs.com/toys/viper:latest
container_name: viper-c
network_mode: "host"
restart: always
volumes:
- ${PWD}/loot:/root/.msf4/loot
- ${PWD}/db:/root/viper/Docker/db
- ${PWD}/module:/root/viper/Docker/module
- ${PWD}/log:/root/viper/Docker/log
- ${PWD}/nginxconfig:/root/viper/Docker/nginxconfig
command: ["VIPER_PASSWORD"]
EOF
设置登录密码
export VIPER_PASSWORD=lhc123
1
写入密码到 docker-compose.yml
sed -i "s/VIPER_PASSWORD/$VIPER_PASSWORD/g" docker-compose.yml
启动 Viper
cd $VIPER_DIR
docker-compose up -d
Viper 登录
等待15s系统启动
访问登录服务器: https://yourip:60000
用户名: root
密码: VIPER@PASS
查看密码: cat /root/VIPER/docker-compose.yml
查看端口: cat /root/VIPER/nginxconfig/viper.conf ,默认端口为 60000
关闭防火墙
ufw disable