mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 04:22:11 +00:00
include hpfeeds support
thank you @vorband
This commit is contained in:
parent
35221f56c9
commit
b406c9b4e0
2 changed files with 20 additions and 7 deletions
|
@ -21,23 +21,28 @@ RUN apk -U --no-cache add \
|
||||||
addgroup -g 2000 rdpy && \
|
addgroup -g 2000 rdpy && \
|
||||||
adduser -S -s /bin/ash -u 2000 -D -g 2000 rdpy && \
|
adduser -S -s /bin/ash -u 2000 -D -g 2000 rdpy && \
|
||||||
|
|
||||||
# Install rdpy from git
|
# Install deps
|
||||||
cd /home/rdpy && \
|
|
||||||
git clone --depth=1 https://github.com/t3chn0m4g3/rdpy && \
|
|
||||||
pip install --no-cache-dir --upgrade pip && \
|
pip install --no-cache-dir --upgrade pip && \
|
||||||
pip install --no-cache-dir --upgrade cffi && \
|
pip install --no-cache-dir --upgrade cffi && \
|
||||||
pip install --no-cache-dir \
|
pip install --no-cache-dir \
|
||||||
|
hpfeeds \
|
||||||
twisted \
|
twisted \
|
||||||
pyopenssl \
|
pyopenssl \
|
||||||
qt4reactor \
|
qt4reactor \
|
||||||
service_identity \
|
service_identity \
|
||||||
rsa pyasn1 && \
|
rsa \
|
||||||
|
pyasn1 && \
|
||||||
|
|
||||||
|
# Install rdpy from git
|
||||||
|
mkdir /opt && \
|
||||||
|
cd /opt && \
|
||||||
|
git clone --depth=1 https://github.com/t3chn0m4g3/rdpy && \
|
||||||
cd rdpy && \
|
cd rdpy && \
|
||||||
python setup.py install && \
|
python setup.py install && \
|
||||||
|
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
cp /root/dist/* /home/rdpy/ && \
|
cp /root/dist/* /opt/rdpy/ && \
|
||||||
chown rdpy:rdpy -R /home/rdpy/* && \
|
chown rdpy:rdpy -R /opt/rdpy/* && \
|
||||||
mkdir -p /var/log/rdpy && \
|
mkdir -p /var/log/rdpy && \
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
|
@ -53,4 +58,4 @@ RUN apk -U --no-cache add \
|
||||||
|
|
||||||
# Start rdpy
|
# Start rdpy
|
||||||
USER rdpy:rdpy
|
USER rdpy:rdpy
|
||||||
CMD exec /usr/bin/python2 -i /usr/bin/rdpy-rdphoneypot.py /home/rdpy/$(shuf -i 1-3 -n 1) >> /var/log/rdpy/rdpy.log
|
CMD exec /usr/bin/python2 -i /usr/bin/rdpy-rdphoneypot.py /opt/rdpy/$(shuf -i 1-3 -n 1) >> /var/log/rdpy/rdpy.log
|
||||||
|
|
|
@ -9,7 +9,15 @@ services:
|
||||||
rdpy:
|
rdpy:
|
||||||
build: .
|
build: .
|
||||||
container_name: rdpy
|
container_name: rdpy
|
||||||
|
extra_hosts:
|
||||||
|
- hpfeeds.example.com:10.20.30.40
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
- HPFEEDS_SERVER=hpfeeds.example.com
|
||||||
|
- HPFEEDS_IDENT=user
|
||||||
|
- HPFEEDS_SECRET=pass
|
||||||
|
- HPFEEDS_PORT=80
|
||||||
|
- SERVERID=id
|
||||||
networks:
|
networks:
|
||||||
- rdpy_local
|
- rdpy_local
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue