diff --git a/cowrie/Dockerfile b/cowrie/Dockerfile index e0eba55..da6f7fe 100644 --- a/cowrie/Dockerfile +++ b/cowrie/Dockerfile @@ -1,22 +1,32 @@ +# +# Dockerfile for cowrie +# + FROM alpine MAINTAINER kev -RUN apk add -U curl \ - py-pip \ - py-twisted \ - tar \ - gcc \ - python-dev \ - musl-dev \ +RUN apk add -U build-base \ + libffi \ libffi-dev \ + openssl \ openssl-dev \ - && pip install pyasn1 pyOpenSSL service_identity \ + python \ + python-dev \ + tar \ + && wget -qO- https://bootstrap.pypa.io/get-pip.py | python \ + && pip install pyasn1 \ + pyOpenSSL \ + service_identity \ + twisted \ && adduser -D cowrie \ && cd /home/cowrie \ - && curl -sSL https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \ + && wget -qO- https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \ && mv cowrie.cfg.dist cowrie.cfg \ && chown -R cowrie:cowrie . \ - && apk del curl \ + && apk del build-base \ + libffi-dev \ + openssl-dev \ + python-dev \ tar \ && rm -rf /var/cache/apk/* diff --git a/cowrie/README.md b/cowrie/README.md index c294cd5..2a8c315 100644 --- a/cowrie/README.md +++ b/cowrie/README.md @@ -1,6 +1,8 @@ cowrie ====== +![](https://badge.imagelayers.io/vimagick/cowrie:latest.svg) + [`Cowrie`][1] is a medium interaction SSH honeypot designed to log brute force attacks and, most importantly, the entire shell interaction performed by the attacker. @@ -14,8 +16,8 @@ cowrie: ports: - "2222:2222" volumes: - - dl:/home/cowrie/dl - - log:/home/cowrie/log + - ./dl:/home/cowrie/dl + - ./log:/home/cowrie/log restart: always ```