mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
conpot cleanup
This commit is contained in:
@ -25,14 +25,10 @@ RUN apk -U --no-cache add \
|
||||
# Setup ConPot
|
||||
git clone --depth=1 https://github.com/mushorg/conpot /opt/conpot && \
|
||||
cd /opt/conpot/ && \
|
||||
# Patch Conpot to PR#400
|
||||
git pull origin pull/400/head && \
|
||||
# Patch to accept ENV for MIB path
|
||||
cp /root/dist/snmp_server.py /opt/conpot/conpot/protocols/snmp/ && \
|
||||
sed -i "s/tmp_mib_dir = tempfile.mkdtemp()/tmp_mib_dir = tempfile.mkdtemp(dir=os.environ['CONPOT_TMP'])/" /opt/conpot/conpot/protocols/snmp/snmp_server.py && \
|
||||
# Increase logging for debug mushorg/conpot/issues/#399
|
||||
cp /root/dist/command_responder.py /opt/conpot/conpot/protocols/http/ && \
|
||||
# mushorg/conpot/issues/#398
|
||||
#cp /root/dist/conpot /opt/conpot/bin && \
|
||||
# Change template default ports if <1024
|
||||
sed -i 's/port="2121"/port="21"/' /opt/conpot/conpot/templates/default/ftp/ftp.xml && \
|
||||
sed -i 's/port="8800"/port="80"/' /opt/conpot/conpot/templates/default/http/http.xml && \
|
||||
|
Reference in New Issue
Block a user