diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 3ac6269b..a2969344 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -37,7 +37,7 @@ jobs: integration-test: name: Integration Test - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - name: Check out source uses: actions/checkout@v4 diff --git a/docker-runner/service-base.Dockerfile b/docker-runner/service-base.Dockerfile index 6c15600a..ce6f59ab 100644 --- a/docker-runner/service-base.Dockerfile +++ b/docker-runner/service-base.Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:16.04 +FROM ubuntu:24.04 # Base Ubuntu container with the apt cache already updated. # Many containers will be able to use this as their base. diff --git a/integration_tests/http/container/lighttpd.conf b/integration_tests/http/container/lighttpd.conf index 381ff742..be83a804 100644 --- a/integration_tests/http/container/lighttpd.conf +++ b/integration_tests/http/container/lighttpd.conf @@ -3,6 +3,7 @@ server.modules = ( "mod_alias", "mod_compress", "mod_redirect", + "mod_openssl", # "mod_rewrite", ) @@ -16,14 +17,14 @@ index-file.names = ( "index.php", "index.html", "index.lighttpd.html" url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) -compress.cache-dir = "/var/cache/lighttpd/compress/" -compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" ) +deflate.cache-dir = "/var/cache/lighttpd/compress/" +deflate.mimetypes = ( "application/javascript", "text/css", "text/html", "text/plain" ) # default listening port for IPv6 falls back to the IPv4 port ## Use ipv6 if available #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port -include_shell "/usr/share/lighttpd/create-mime.assign.pl" -include_shell "/usr/share/lighttpd/include-conf-enabled.pl" +include_shell "/usr/share/lighttpd/create-mime.conf.pl" +include "/etc/lighttpd/conf-enabled/*.conf" debug.log-request-handling = "enable" diff --git a/integration_tests/ipp/test.sh b/integration_tests/ipp/test.sh index 823381e3..ef2d7740 100755 --- a/integration_tests/ipp/test.sh +++ b/integration_tests/ipp/test.sh @@ -29,8 +29,8 @@ function test_cups() { echo "ipp/test: Incorrect minor version. Expected 1, got $minor" exit 1 fi - if ! [ $cups = "CUPS/2.1" ]; then - echo "ipp/test: Incorrect CUPS version. Expected CUPS/2.1, got $cups" + if ! [ $cups = "CUPS/2.4" ]; then + echo "ipp/test: Incorrect CUPS version. Expected CUPS/2.4, got $cups" exit 1 fi } @@ -56,8 +56,8 @@ function test_cups_tls() { echo "ipp/test: Incorrect minor version. Expected 1, got $minor" exit 1 fi - if ! [ $cups = "CUPS/2.1" ]; then - echo "ipp/test: Incorrect CUPS version. Expected CUPS/2.1, got $cups" + if ! [ $cups = "CUPS/2.4" ]; then + echo "ipp/test: Incorrect CUPS version. Expected CUPS/2.4, got $cups" exit 1 fi if [ "$tls" = "null" ]; then 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