From 33356bcfbee4bd4856b4d64f49e6cc9ea46c75f1 Mon Sep 17 00:00:00 2001 From: Thayol Date: Sat, 10 Aug 2024 16:50:12 +0200 Subject: [PATCH] add index.cgi (/bin/sh) --- cgi-bin/index.cgi | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cgi-bin/index.cgi diff --git a/cgi-bin/index.cgi b/cgi-bin/index.cgi new file mode 100644 index 0000000..964ecf9 --- /dev/null +++ b/cgi-bin/index.cgi @@ -0,0 +1,9 @@ +#!/bin/sh + +echo "HTTP/1.1 200 OK" +echo "Content-Type: text/html; charset=UTF-8" +echo "" + +GET="$QUERY_STRING" + +eval "$(echo "%>$(cat ../index.sh.html)<%" | sed -e "s/<%=/<%echo /g" -e "s/<%/\nRAW\n/g" -e "s/%>/\ncat <<- RAW\n/g")"