add index.cgi (/bin/sh)

This commit is contained in:
2024-08-10 16:50:12 +02:00
committed by GitHub
parent 0d9d45c7ed
commit 33356bcfbe
+9
View File
@@ -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")"