Files
Viper/docs/en/guide/change_password.md
rootkit 5439e18aa0 合并拉取请求 #234
* Adjust English document.

* fix image link error and remove font dom in mk
2025-03-15 15:17:55 +08:00

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 command in docker-compose.yml to 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