1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update cowrie

This commit is contained in:
kev 2015-11-25 09:42:37 +08:00
parent ae628ac30a
commit 44d3631524
2 changed files with 24 additions and 12 deletions

@ -1,22 +1,32 @@
#
# Dockerfile for cowrie
#
FROM alpine
MAINTAINER kev <noreply@datageek.info>
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/*

@ -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
```