Skip to content

Commit

Permalink
fix: switch to inetutils-telnetd for telnet test
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Jan 28, 2025
1 parent 6a15d17 commit 97d4b41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion integration_tests/telnet/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 .
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/telnet/container/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions integration_tests/telnet/container/inetd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/telnetd

0 comments on commit 97d4b41

Please sign in to comment.