Last active
July 10, 2023 10:36
-
-
Save kyokuheki/3e6eb87ad075e3d591e8060c50d538d8 to your computer and use it in GitHub Desktop.
crackpkcs12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu | |
| LABEL maintainer Kyokuheki <[email protected]> | |
| ENV LANG=C.UTF-8 \ | |
| LC_ALL=C.UTF-8 \ | |
| DEBIAN_FRONTEND=noninteractive | |
| RUN set -x \ | |
| && apt-get update && apt-get install -y \ | |
| build-essential \ | |
| pkg-config \ | |
| openssl \ | |
| libssl-dev \ | |
| curl \ | |
| && apt-get clean && rm -rf /var/cache/apt/archives/* /var/lib/apt/lists/* | |
| RUN set -x \ | |
| && curl -qsSLo /usr/local/src/crackpkcs12.tar.gz https://github.com/crackpkcs12/crackpkcs12/archive/refs/heads/master.tar.gz \ | |
| && tar xvf /usr/local/src/crackpkcs12.tar.gz -C /usr/local/src \ | |
| && cd /usr/local/src/crackpkcs12-master \ | |
| && ./configure \ | |
| && make \ | |
| && make install | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir crackpkcs12 | |
| cd crackpkcs12 | |
| curl -qsSLo Dockerfile https://gist.github.com/kyokuheki/3e6eb87ad075e3d591e8060c50d538d8/raw/8467cc3385b151b4937b5aa71f6de9ec21185ced/crackpkcs12.Dockerfile | |
| docker build . -t crackpkcs12 | |
| docker run -dit --name pfx-test --rm -v $HOME:/srv crackpkcs12:latest bash -c 'crackpkcs12 -v -M20 -b /srv/xxxx.pfx | tee /srv/xxxx.log' | |
| ssh xxxx tail -f xxxx.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment