forked from dizcza/docker-hashcat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
68 lines (47 loc) · 2.61 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM nvidia/cuda:12.1.0-devel-ubuntu22.04
ARG SCRIPT_FN
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ="Asia/Dubai"
LABEL com.nvidia.volumes.needed="nvidia_driver"
RUN apt-get update && apt-get install -y --no-install-recommends \
ocl-icd-libopencl1 \
clinfo pkg-config
RUN mkdir -p /etc/OpenCL/vendors && \
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
RUN echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && \
echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf
ENV PATH /usr/local/nvidia/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}
# nvidia-container-runtime
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility
################################ end nvidia opencl driver ################################
ENV HASHCAT_VERSION v6.2.6
ENV HASHCAT_UTILS_VERSION v1.9
ENV HCXTOOLS_VERSION 6.2.7
ENV HCXDUMPTOOL_VERSION 6.2.7
ENV HCXKEYS_VERSION master
# Install packages for installing hashcat
RUN apt-get install -y curl htop wget make clinfo build-essential git libcurl4-openssl-dev libssl-dev zlib1g-dev \
libssl-dev p7zip-full p7zip-rar screen python3-pip pciutils pipx
# Fetch PCI IDs list to display proper GPU names
RUN update-pciids
RUN pipx install gdown
WORKDIR /root
RUN git clone https://github.com/hashcat/hashcat.git && cd hashcat && git checkout ${HASHCAT_VERSION} && make install -j4
RUN git clone https://github.com/hashcat/hashcat-utils.git && cd hashcat-utils/src && git checkout ${HASHCAT_UTILS_VERSION} && make
RUN ln -s /root/hashcat-utils/src/cap2hccapx.bin /usr/bin/cap2hccapx
RUN git clone https://github.com/ZerBea/hcxtools.git && cd hcxtools && git checkout ${HCXTOOLS_VERSION} && make install
RUN git clone https://github.com/ZerBea/hcxdumptool.git && cd hcxdumptool && git checkout ${HCXDUMPTOOL_VERSION} && make install
RUN git clone https://github.com/hashcat/kwprocessor.git && cd kwprocessor && git checkout ${HCXKEYS_VERSION} && make
RUN ln -s /root/kwprocessor/kwp /usr/bin/kwp
RUN curl -OJL "https://github.com/Cynosureprime/rling/raw/master/rling" && chmod +x rling && mv rling /bin/
RUN rm -rf /var/lib/apt/lists/*
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# GET Wordlists
RUN wget "https://raw.githubusercontent.com/fa1rid/docker-hashcat/master/script.sh" -O script.sh
RUN chmod +x script.sh && cat script.sh && echo "fn: $SCRIPT_FN"
RUN ./script.sh $SCRIPT_FN
RUN rm ./script.sh
RUN touch ~/.no_auto_tmux
RUN echo -e "set-option -g history-limit 9000\nset -g terminal-overrides 'xterm*:smcup@:rmcup@'" > ~/.tmux.conf