2016-12-02 22:42:52 +01:00
|
|
|
FROM debian:jessie
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2015-10-18 23:31:02 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
libgmp10 \
|
|
|
|
libgomp1 \
|
|
|
|
libkrb5-3 \
|
|
|
|
libnss3 \
|
2016-12-02 22:42:52 +01:00
|
|
|
libssl1.0.0 \
|
2015-10-18 23:31:02 +02:00
|
|
|
openssl \
|
|
|
|
--no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN buildDeps=' \
|
|
|
|
ca-certificates \
|
|
|
|
gcc \
|
|
|
|
git \
|
|
|
|
libgmp-dev \
|
|
|
|
libkrb5-dev \
|
|
|
|
libnss3-dev \
|
|
|
|
libssl-dev \
|
|
|
|
make \
|
|
|
|
' \
|
|
|
|
&& set -x \
|
|
|
|
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& git clone https://github.com/magnumripper/JohnTheRipper.git /usr/src/johntheripper \
|
|
|
|
&& cd /usr/src/johntheripper/src \
|
2016-12-02 22:42:52 +01:00
|
|
|
&& ./configure || cat config.log \
|
2015-10-18 23:31:02 +02:00
|
|
|
&& make \
|
|
|
|
&& cp -r ../run/* /usr/local/bin/ \
|
|
|
|
&& rm -rf /usr/src/johntheripper \
|
|
|
|
&& apt-get purge -y --auto-remove $buildDeps
|
|
|
|
|
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" ]
|