-
-
Notifications
You must be signed in to change notification settings - Fork 102
Updating
INCOMPLETE
Always backup your config files before updating, including the crackqdb.sqlite database.
To update your installation the process should be as follows.
Kill the docker containers then remove the containers and images:
sudo docker system prune --all
Download the latest version.
Then just rerun the installation script:
sudo ./install.sh docker/nvidia/ubuntu (or which ever build you chose)
The database should migrate automatically keeping your users, sessions and templates. The Jobs and Queues will be cleared though.
Since version 0.1.0 CrackQ is now configured to use the latest stable Haschat release, if you want to use the latest from git edit the file ./docker/common/setup.sh (commenting out the stable install lines and uncomment the git repo latest):
#install stable hashcat
wget https://github.com/hashcat/hashcat/archive/refs/tags/v6.2.1.tar.gz
tar xvfz v*.tar.gz && mv hashcat-* hashcat
#or install latest hashcat from git
#git clone https://github.com/hashcat/hashcat.git
If you see any error like the below message when updating your installation, you may just need to delete the pycache directory. There may also be brain dump files (brain.) and core dumps (core., created by hashcat if it crashes) from the previous install:
Permission denied: '/opt/crackq/crackq/__pycache__/
The SQLite database is located at /var/crackq/files/crackqdb.sqlite and should automatically migrate previous database schemas when updating. However, if you experience any problems, raise an issue and we should be able to resolve them with flask sql migrate.