mirror of
https://github.com/FunnyWolf/Viper.git
synced 2026-10-18 13:40:38 +08:00
5439e18aa0
* Adjust English document. * fix image link error and remove font dom in mk
1.2 KiB
1.2 KiB
Change Password
Temporary Change
This is applicable when you need to change the password without restarting Viper. The password will not be retained after Viper is updated.
- Ensure that Viper is running normally.
- Enter the command line of the Docker image.
docker exec -it viper-c bash
- Execute the command to change the password.
viper -pw this_is_new_password
Persistent Change
- Enter the installation directory.
cd /root/VIPER
- Change the content of
commandindocker-compose.ymlto the new password. For example:
version: "3"
services:
viper:
image: registry.cn-hongkong.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: ["this_is_new_password"]
- Execute the following commands to recreate the container.
cd /root/VIPER
docker compose down # Delete the existing container
docker compose up -d # Restart and start the container