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