1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 09:41:20 +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 FROM alpine
MAINTAINER kev <noreply@datageek.info> MAINTAINER kev <noreply@datageek.info>
RUN apk add -U curl \ RUN apk add -U build-base \
py-pip \ libffi \
py-twisted \
tar \
gcc \
python-dev \
musl-dev \
libffi-dev \ libffi-dev \
openssl \
openssl-dev \ 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 \ && adduser -D cowrie \
&& cd /home/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 \ && mv cowrie.cfg.dist cowrie.cfg \
&& chown -R cowrie:cowrie . \ && chown -R cowrie:cowrie . \
&& apk del curl \ && apk del build-base \
libffi-dev \
openssl-dev \
python-dev \
tar \ tar \
&& rm -rf /var/cache/apk/* && rm -rf /var/cache/apk/*

@ -1,6 +1,8 @@
cowrie cowrie
====== ======
![](https://badge.imagelayers.io/vimagick/cowrie:latest.svg)
[`Cowrie`][1] is a medium interaction SSH honeypot designed to log brute force attacks [`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. and, most importantly, the entire shell interaction performed by the attacker.
@ -14,8 +16,8 @@ cowrie:
ports: ports:
- "2222:2222" - "2222:2222"
volumes: volumes:
- dl:/home/cowrie/dl - ./dl:/home/cowrie/dl
- log:/home/cowrie/log - ./log:/home/cowrie/log
restart: always restart: always
``` ```