diff --git a/integration_tests/telnet/container/Dockerfile b/integration_tests/telnet/container/Dockerfile index dd2b6aea..e5853f0d 100644 --- a/integration_tests/telnet/container/Dockerfile +++ b/integration_tests/telnet/container/Dockerfile @@ -1,6 +1,7 @@ FROM zgrab2_service_base:latest -RUN apt-get install -y telnetd +RUN apt-get install -y inetutils-telnetd +COPY inetd.conf /etc/inetd.conf WORKDIR / COPY entrypoint.sh . diff --git a/integration_tests/telnet/container/entrypoint.sh b/integration_tests/telnet/container/entrypoint.sh index e1bb8efb..bc54ec77 100755 --- a/integration_tests/telnet/container/entrypoint.sh +++ b/integration_tests/telnet/container/entrypoint.sh @@ -3,8 +3,8 @@ set -x while true; do - if ! /usr/sbin/in.telnetd -debug 23; then - echo "in.telnetd exited unexpectedly. Restarting..." + if ! inetutils-inetd -d; then + echo "telnetd exited unexpectedly. Restarting..." sleep 1 fi done diff --git a/integration_tests/telnet/container/inetd.conf b/integration_tests/telnet/container/inetd.conf new file mode 100644 index 00000000..48906ee5 --- /dev/null +++ b/integration_tests/telnet/container/inetd.conf @@ -0,0 +1 @@ +telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/telnetd