Closed cwilliams001 closed 1 year ago
I was able to get a hashcat working inside of kasm. Leaving this here in case it helps anyone in the future.
FROM kasmweb/core-ubuntu-jammy:1.13.1
USER root
ENV HOME /home/kasm-default-profile
ENV STARTUPDIR /dockerstartup
ENV INST_SCRIPTS $STARTUPDIR/install
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility,display
WORKDIR $HOME
######### Customize Container Here ###########
RUN apt-get update && apt-get install -y \
hashcat \
nvidia-cuda-toolkit
RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
######### End Customizations ###########
RUN chown 1000:0 $HOME
RUN $STARTUPDIR/set_user_permission.sh $HOME
ENV HOME /home/kasm-user
WORKDIR $HOME
RUN mkdir -p $HOME && chown -R 1000:0 $HOME
USER 1000
Thanks for sharing the code.
I don't work with kasm, in fact, I've never heard of it. Perhaps, you can create and publish an image there with the code you've already supplied? Since you're using it and I'm not, it'd be more appropriate if you maintain it. I can set up credentials for you if that is required on their website (though I imagine you can easily fork this repo).
Appreciate the time you've put into this. I am currently trying to build a Frakenstein image to get your docker container to work with kasm. It would be awesome if it could just be added to kasm workspaces from the kasm admin panel.