Skip to content

Commit

Permalink
pls work....
Browse files Browse the repository at this point in the history
  • Loading branch information
JAKAMI99 committed May 8, 2024
1 parent 8aab840 commit 5ed0fdb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
25 changes: 18 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Start with the NVIDIA CUDA base image
FROM nvidia/cuda:11.8.0-base-ubuntu22.04
FROM nvidia/cuda:12.1.1-devel-ubuntu22.04

# Install essential tools and update packages
LABEL com.nvidia.volumes.needed="nvidia_driver"

# Update and install essential packages
RUN apt-get update && apt-get install -y \
ca-certificates \
build-essential \
python3 \
python3-pip \
Expand All @@ -12,21 +15,29 @@ RUN apt-get update && apt-get install -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install Hashcat from repository
RUN apt-get update && apt-get install -y hashcat
# Set up the NVIDIA environment
ENV PATH /usr/local/nvidia/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/nvidia/lib:/usr/local/nvidia/lib64:${LD_LIBRARY_PATH}

# Clone and build Hashcat
RUN mkdir -p /hashcat && \
cd /hashcat && \
git clone https://github.com/hashcat/hashcat.git . && \
git submodule update --init && \
make install && \
rm -rf .git

# Set up the Python environment
RUN pip3 install --upgrade pip

# Copy your Python script to the container
# (Replace help_crack.py with your actual script)
COPY help_crack.py /app/help_crack.py

# Create a subfolder for script output
RUN mkdir -p /app/data

# Set the working directory to the subfolder
# Set the working directory to the script output folder
WORKDIR /app/data

# Run the script with relative paths
# Run the Python script
CMD ["python3", "../help_crack.py", "-co=--deprecated-check-disable", "--pot", "cracked.potfile"]
1 change: 1 addition & 0 deletions help_crack.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ def run(self):
or keypair[0]['key'] != bytearray(netdata[0]['key'], 'utf-8', errors='ignore') \
or keypair[1]['key'] != bytearray(netdata[0]['key'], 'utf-8', errors='ignore'):
self.pprint('Challenge solving failed! Check if your cracker runs correctly.', 'FAIL')
exit(1)

hashcache = set()
netdata = self.resume_check()
Expand Down

0 comments on commit 5ed0fdb

Please sign in to comment.