diff --git a/.gitignore b/.gitignore index d442908..92d2947 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ x64/ *.user .vscode/ +.vs/ diff --git a/CudaKeeloq.vcxproj b/CudaKeeloq.vcxproj index 8afad71..69c9b80 100644 --- a/CudaKeeloq.vcxproj +++ b/CudaKeeloq.vcxproj @@ -42,7 +42,7 @@ - + @@ -223,6 +223,6 @@ - + \ No newline at end of file diff --git a/dockerfile b/dockerfile index 1f40602..2a30f6e 100644 --- a/dockerfile +++ b/dockerfile @@ -1,7 +1,7 @@ ARG CONFIGURATION="release" ARG CUDA_MAJOR=12 -ARG CUDA_MINOR=0 -ARG CUDA_PATCH=1 +ARG CUDA_MINOR=2 +ARG CUDA_PATCH=0 FROM nvidia/cuda:${CUDA_MAJOR}.${CUDA_MINOR}.${CUDA_PATCH}-devel-ubuntu22.04 as builder ARG CONFIGURATION @@ -27,4 +27,5 @@ USER cuda WORKDIR /app COPY --chown=cuda:cuda --from=builder /workspace/x64/$CONFIGURATION/bin /app/ -ENTRYPOINT [ "/app/CudaKeeloq", "--help" ] +ENTRYPOINT [ "/app/CudaKeeloq" ] +CMD [ "--help" ] diff --git a/readme.md b/readme.md index c620446..405aa9e 100644 --- a/readme.md +++ b/readme.md @@ -11,6 +11,9 @@ So it's practically impossible to use this application "as is" in real life atta ## Version history + * `0.1.2` + - Fixed `dockerfile`, added `CMD` (issue: https://github.com/X-Stuff/CudaKeeloq/issues/4). + - CUDA version updated to `12.2`` * `0.1.1` - Added seed bruteforce mode (issue: https://github.com/x-stuff/CudaKeeloq/issues/2). - Added support of specifying seed in a text dictionaries. @@ -42,7 +45,7 @@ So it's practically impossible to use this application "as is" in real life atta ### Windows #### Requirements -* CUDA Toolkit v12.0.0 +* CUDA Toolkit v12.2.0 - nvcc - cuda runtime - visual studio extension @@ -55,6 +58,7 @@ So it's practically impossible to use this application "as is" in real life atta ### Linux #### Requirements * docker +* NVIDIA Container [Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) #### Compiling ``` @@ -64,10 +68,20 @@ This will create a container `cudakeeloq:local` with compiled app Run the bruteforcer ``` -$ ./run.sh +$ ./run.sh ``` > NOTE: You may need to have CUDA docker extension installed in order to have `--gpus` command line argument works. +### Different CUDA Version + +#### Windows +Open `.vcxproj` find and replace: + * `CUDA 12.2.targets` with desired version + * `CUDA 12.2.props` with disired version + +#### Linux +Open `dockerfile` and change `CUDA_MAJOR`, `CUDA_MINOR` and `CUDA_PATCH` variables + ## Run ### Requirements