2018-09-14 17:48:08 +02:00
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-10-18 23:31:02 +02:00
|
|
|
|
2018-09-14 17:48:08 +02:00
|
|
|
RUN apk add --no-cache \
|
2018-09-14 17:52:37 +02:00
|
|
|
ca-certificates \
|
|
|
|
gmp \
|
|
|
|
libgomp
|
2015-10-18 23:31:02 +02:00
|
|
|
|
2018-09-14 17:48:08 +02:00
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
build-base \
|
2015-10-18 23:31:02 +02:00
|
|
|
gcc \
|
|
|
|
git \
|
2018-09-14 17:48:08 +02:00
|
|
|
gmp-dev \
|
|
|
|
krb5-dev \
|
|
|
|
libressl-dev \
|
2015-10-18 23:31:02 +02:00
|
|
|
make \
|
2018-09-14 17:48:08 +02:00
|
|
|
perl \
|
2016-12-28 02:04:58 +01:00
|
|
|
&& git clone --depth 1 https://github.com/magnumripper/JohnTheRipper.git /usr/src/johntheripper \
|
2018-09-14 17:48:08 +02:00
|
|
|
&& ( \
|
|
|
|
cd /usr/src/johntheripper/src \
|
|
|
|
&& ./configure || cat config.log \
|
|
|
|
&& make \
|
|
|
|
&& cp -r ../run/* /usr/local/bin/ \
|
|
|
|
) \
|
2015-10-18 23:31:02 +02:00
|
|
|
&& rm -rf /usr/src/johntheripper \
|
2018-09-14 17:48:08 +02:00
|
|
|
&& apk del .build-deps
|
2015-10-18 23:31:02 +02:00
|
|
|
|
2015-10-19 00:32:00 +02:00
|
|
|
COPY john.ini /root/john.ini
|
|
|
|
COPY passwd.lst /root/passwd.lst
|
|
|
|
|
2015-10-18 23:31:02 +02:00
|
|
|
WORKDIR /root
|
|
|
|
|
|
|
|
ENTRYPOINT [ "john" ]
|