prepare installer for medpot

This commit is contained in:
t3chn0m4g3 2018-09-09 18:38:47 +00:00
parent 39fb972589
commit 8b4a233b7a
7 changed files with 67 additions and 0 deletions

View file

@ -167,6 +167,14 @@ fuMAILONEY () {
chown tpot:tpot /data/mailoney/ -R chown tpot:tpot /data/mailoney/ -R
} }
# Let's create a function to clean up and prepare mailoney data
fuMEDPOT () {
if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/medpot/*; fi
mkdir -p /data/medpot/log/
chmod 760 /data/medpot/ -R
chown tpot:tpot /data/medpot/ -R
}
# Let's create a function to clean up nginx logs # Let's create a function to clean up nginx logs
fuNGINX () { fuNGINX () {
if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/nginx/log/*; fi if [ "$myPERSISTENCE" != "on" ]; then rm -rf /data/nginx/log/*; fi
@ -257,6 +265,7 @@ if [ "$myPERSISTENCE" = "on" ];
fuHERALDING fuHERALDING
fuHONEYTRAP fuHONEYTRAP
fuMAILONEY fuMAILONEY
fuMEDPOT
fuNGINX fuNGINX
fuRDPY fuRDPY
fuSPIDERFOOT fuSPIDERFOOT

View file

@ -12,6 +12,7 @@ networks:
elasticpot_local: elasticpot_local:
heralding_local: heralding_local:
mailoney_local: mailoney_local:
medpot_local:
rdpy_local: rdpy_local:
tanner_local: tanner_local:
vnclowpot_local: vnclowpot_local:
@ -264,6 +265,19 @@ services:
volumes: volumes:
- /data/mailoney/log:/opt/mailoney/logs - /data/mailoney/log:/opt/mailoney/logs
# Medpot service
medpot:
container_name: medpot
restart: always
networks:
- medpot_local
ports:
- "2575:2575"
image: "dtagdevsec/medpot:1804"
read_only: true
volumes:
- /data/medpot/log/:/var/log/
# Rdpy service # Rdpy service
rdpy: rdpy:
container_name: rdpy container_name: rdpy

View file

@ -10,6 +10,7 @@ networks:
conpot_local_kamstrup_382: conpot_local_kamstrup_382:
cowrie_local: cowrie_local:
cyberchef_local: cyberchef_local:
medpot_local:
rdpy_local: rdpy_local:
vnclowpot_local: vnclowpot_local:
ewsposter_local: ewsposter_local:
@ -178,6 +179,19 @@ services:
- /data/honeytrap/downloads:/opt/honeytrap/var/downloads - /data/honeytrap/downloads:/opt/honeytrap/var/downloads
- /data/honeytrap/log:/opt/honeytrap/var/log - /data/honeytrap/log:/opt/honeytrap/var/log
# Medpot service
medpot:
container_name: medpot
restart: always
networks:
- medpot_local
ports:
- "2575:2575"
image: "dtagdevsec/medpot:1804"
read_only: true
volumes:
- /data/medpot/log/:/var/log/
# Rdpy service # Rdpy service
rdpy: rdpy:
container_name: rdpy container_name: rdpy

View file

@ -11,6 +11,7 @@ networks:
elasticpot_local: elasticpot_local:
heralding_local: heralding_local:
mailoney_local: mailoney_local:
medpot_local:
rdpy_local: rdpy_local:
tanner_local: tanner_local:
vnclowpot_local: vnclowpot_local:
@ -262,6 +263,19 @@ services:
volumes: volumes:
- /data/mailoney/log:/opt/mailoney/logs - /data/mailoney/log:/opt/mailoney/logs
# Medpot service
medpot:
container_name: medpot
restart: always
networks:
- medpot_local
ports:
- "2575:2575"
image: "dtagdevsec/medpot:1804"
read_only: true
volumes:
- /data/medpot/log/:/var/log/
# Rdpy service # Rdpy service
rdpy: rdpy:
container_name: rdpy container_name: rdpy

View file

@ -12,6 +12,7 @@ networks:
elasticpot_local: elasticpot_local:
heralding_local: heralding_local:
mailoney_local: mailoney_local:
medpot_local:
rdpy_local: rdpy_local:
tanner_local: tanner_local:
vnclowpot_local: vnclowpot_local:
@ -263,6 +264,19 @@ services:
volumes: volumes:
- /data/mailoney/log:/opt/mailoney/logs - /data/mailoney/log:/opt/mailoney/logs
# Medpot service
medpot:
container_name: medpot
restart: always
networks:
- medpot_local
ports:
- "2575:2575"
image: "dtagdevsec/medpot:1804"
read_only: true
volumes:
- /data/medpot/log/:/var/log/
# Rdpy service # Rdpy service
rdpy: rdpy:
container_name: rdpy container_name: rdpy

View file

@ -26,6 +26,7 @@
/data/honeytrap/attacks.tgz /data/honeytrap/attacks.tgz
/data/honeytrap/downloads.tgz /data/honeytrap/downloads.tgz
/data/mailoney/log/commands.log /data/mailoney/log/commands.log
/data/medpot/log/*.log
/data/nginx/log/*.log /data/nginx/log/*.log
/data/p0f/log/p0f.json /data/p0f/log/p0f.json
/data/rdpy/log/rdpy.log /data/rdpy/log/rdpy.log

View file

@ -698,6 +698,7 @@ mkdir -p /data/ciscoasa/log \
/data/glutton/log \ /data/glutton/log \
/data/heralding/log \ /data/heralding/log \
/data/mailoney/log \ /data/mailoney/log \
/data/medpot/log \
/data/nginx/log \ /data/nginx/log \
/data/emobility/log \ /data/emobility/log \
/data/ews/conf \ /data/ews/conf \