add kippo-graph and update cowrie doc

This commit is contained in:
Wonderfall
2017-03-29 14:57:43 +02:00
parent 823c4afa53
commit b3567b03b6
10 changed files with 206 additions and 1 deletions

View File

@ -16,6 +16,7 @@ RUN BUILD_DEPS=" \
libressl-dev \
python-dev \
gmp-dev \
mariadb-dev \
py2-pip \
tar \
gnupg" \
@ -27,6 +28,7 @@ RUN BUILD_DEPS=" \
python \
py-setuptools \
openssh-client \
mariadb-client-libs \
tini \
su-exec \
&& cd /tmp && wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz \
@ -57,6 +59,7 @@ RUN BUILD_DEPS=" \
&& mkdir /cowrie && cd /cowrie \
&& wget -qO- https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \
&& pip install --no-cache -r requirements.txt \
&& pip install --no-cache mysql-python \
&& mv cowrie.cfg.dist cowrie.cfg \
&& apk del ${BUILD_DEPS} \
&& rm -rf /var/cache/apk/* /tmp/* /root/.gnupg

View File

@ -1,4 +1,4 @@
x## wonderfall/cowrie
### wonderfall/cowrie
#### What is this?
Cowrie is a medium interaction SSH honeypot designed to log brute force attacks and the shell interaction performed by the attacker. Cowrie is based on Kippo.
@ -27,6 +27,8 @@ You can mount this single file to your Docker container.
```
cowrie:
image: wonderfall/cowrie
links: ### MySQL output
- cowrie-db:cowrie-db ### MySQL output
ports:
- "2222:2222"
volumes:
@ -37,5 +39,21 @@ cowrie:
environment:
- GID=1000
- UID=1000
### MySQL output
# First, you'll have to initialise tables with a .sql file
# wget https://github.com/micheloosterhof/cowrie/blob/master/doc/sql/mysql.sql -P /mnt/cowrie/schema.sql
# It needs also to be configured in the cowrie.cfg file
cowrie-db:
image: mariadb:10
volumes:
- /mnt/cowrie/db:/var/lib/mysql
- /mnt/cowrie/schema.sql:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=supersecretpassword
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_PASSWORD=supersecretpassword
```