Closed Meatballs1 closed 6 years ago
There is some details on running here https://github.com/fireeye/gocrack/blob/master/docs/administrator/docker.md, but doesn't appear correct as it doesn't map to /opt/gocrack etc.
Adding user `gocrack' ...
Adding new group `gocrack' (1000) ...
Adding new user `gocrack' (1000) with group `gocrack' ...
Creating home directory `/home/gocrack' ...
Copying files from `/etc/skel' ...
/usr/local/bin/entrypoint.sh: line 4: cd: /opt/gocrack/: No such file or directory
{"time":"2018-01-11T12:31:15Z","level":"fatal","error":"open /opt/gocrack/config.yaml: no such file or directory","message":"Failed to load configuration file"}
When you say you added apt-get install
to the Dockerfile, which one? It's located here. You should also have git installed on your local host as the Makefile does a checkout of the hashcat code there.
Regarding the directory issue - you are correct. The runscripts for the docker container are expecting a config in /opt/gocrack/config.yaml but the documentation says /var/lib/gocrack
- I'll go ahead and update the documentation to fix that.
Regarding the permissions/user issue... when a docker container drops files, they're usually owned by root hence why the documentation tells you to pass -e USER_ID=$(echo "$UID")
when you create a container so that the container can create a gocrack user within the container that has the same UID as the user you're running as.
git is missing from https://github.com/fireeye/gocrack/blob/master/docker/Dockerfile.hashcat.ubuntu - The hashcat makefile calls out to git
Git has now been added to the Hashcat Build Container
Theres a few of errors starting at:
Fixed by adding git to the dockerfile
apt-get install
.Then:
Permissions on dist appear to be created with root ? Chowned that back to my user (1000).
I also get some additional errors but I think that is due to UMASK 027