mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
prep for new medpot, honeypots and some tweaking
This commit is contained in:
parent
afb16dcc96
commit
1eaec0036e
4 changed files with 54 additions and 3 deletions
|
@ -55,7 +55,7 @@ RUN apk -U --no-cache add \
|
||||||
git clone https://github.com/qeeqbox/honeypots && \
|
git clone https://github.com/qeeqbox/honeypots && \
|
||||||
cd honeypots && \
|
cd honeypots && \
|
||||||
# git checkout bee3147cf81837ba7639f1e27fe34d717ecccf29 && \
|
# git checkout bee3147cf81837ba7639f1e27fe34d717ecccf29 && \
|
||||||
git checkout 473541e1ac45d9a4df98098a5f8fee32a2fddc03 && \
|
git checkout 1ad37d7e07838e9ad18c5244d87b9e49d90c9bc3 && \
|
||||||
cp /root/dist/setup.py . && \
|
cp /root/dist/setup.py . && \
|
||||||
pip3 install --upgrade pip && \
|
pip3 install --upgrade pip && \
|
||||||
pip3 install . && \
|
pip3 install . && \
|
||||||
|
|
2
docker/honeypots/dist/config.json
vendored
2
docker/honeypots/dist/config.json
vendored
|
@ -145,7 +145,7 @@
|
||||||
"log_file_name":"ssh.log",
|
"log_file_name":"ssh.log",
|
||||||
"max_bytes":0,
|
"max_bytes":0,
|
||||||
"backup_count":10,
|
"backup_count":10,
|
||||||
"options":["capture_commands"]
|
"options":["capture_commands", "interactive"]
|
||||||
},
|
},
|
||||||
"telnet":{
|
"telnet":{
|
||||||
"port":23,
|
"port":23,
|
||||||
|
|
51
docker/medpot/Dockerfile.new
Normal file
51
docker/medpot/Dockerfile.new
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
FROM alpine:3.16
|
||||||
|
#
|
||||||
|
# Setup apk
|
||||||
|
RUN apk -U --no-cache add \
|
||||||
|
build-base \
|
||||||
|
git \
|
||||||
|
go \
|
||||||
|
g++ && \
|
||||||
|
#
|
||||||
|
# Setup go, build medpot
|
||||||
|
export GOPATH=/tmp && \
|
||||||
|
export GO111MODULE=off && \
|
||||||
|
cd /tmp && \
|
||||||
|
go get -d -v github.com/davecgh/go-spew/spew && \
|
||||||
|
go get -d -v github.com/go-ini/ini && \
|
||||||
|
go get -d -v github.com/mozillazg/request && \
|
||||||
|
go get -d -v go.uber.org/zap && \
|
||||||
|
go get -d -v github.com/s9rA16Bf4/ArgumentParser/go/arguments && \
|
||||||
|
go get -d -v github.com/s9rA16Bf4/notify_handler/go/notify && \
|
||||||
|
git clone https://github.com/schmalle/medpot && \
|
||||||
|
cd medpot && \
|
||||||
|
# git checkout 75a2e6134cf926c35b6017d62542274434c87388 && \
|
||||||
|
git checkout 3ec8740258d85ab3558659c727226d752ecaa43f && \
|
||||||
|
sed -i s/"ews = true"/"ews = false"/g template/ews.cfg && \
|
||||||
|
go build -o medpot go/medpot.go go/logo.go && \
|
||||||
|
#
|
||||||
|
# Setup medpot
|
||||||
|
mkdir -p /etc/medpot \
|
||||||
|
/opt/medpot \
|
||||||
|
/var/log/medpot && \
|
||||||
|
cp medpot /opt/medpot && \
|
||||||
|
cp ./template/* /etc/medpot && \
|
||||||
|
#
|
||||||
|
# Setup user, groups and configs
|
||||||
|
addgroup -g 2000 medpot && \
|
||||||
|
adduser -S -s /bin/ash -u 2000 -D -g 2000 medpot && \
|
||||||
|
chown -R medpot:medpot /var/log/medpot && \
|
||||||
|
#
|
||||||
|
# Clean up
|
||||||
|
apk del --purge build-base \
|
||||||
|
git \
|
||||||
|
go \
|
||||||
|
g++ && \
|
||||||
|
rm -rf /var/cache/apk/* \
|
||||||
|
/opt/go \
|
||||||
|
/root/dist
|
||||||
|
#
|
||||||
|
# Start medpot
|
||||||
|
WORKDIR /opt/medpot
|
||||||
|
USER medpot:medpot
|
||||||
|
CMD ["./medpot"]
|
|
@ -14,7 +14,7 @@ services:
|
||||||
# cpus: 0.25
|
# cpus: 0.25
|
||||||
environment:
|
environment:
|
||||||
# - SENTRYPEER_WEB_GUI=0
|
# - SENTRYPEER_WEB_GUI=0
|
||||||
- SENTRYPEER_PEER_TO_PEER=false
|
- SENTRYPEER_PEER_TO_PEER=0
|
||||||
# - SENTRYPEER_BOOTSTRAP_NODE=bootstrap.sentrypeer.org
|
# - SENTRYPEER_BOOTSTRAP_NODE=bootstrap.sentrypeer.org
|
||||||
- SENTRYPEER_VERBOSE=1
|
- SENTRYPEER_VERBOSE=1
|
||||||
- SENTRYPEER_DEBUG=1
|
- SENTRYPEER_DEBUG=1
|
||||||
|
|
Loading…
Reference in a new issue