aboutsummaryrefslogtreecommitdiff
path: root/bashweb.sh
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-11-07 17:32:02 +0000
committerMinteck <nekostarfan@gmail.com>2021-11-07 17:32:02 +0000
commitb304eeffd5a63e9e9dda54ea30a078cf0983f0bb (patch)
tree40f7e2c4d4830bd35e90fc85469dc3e1ba4f49a5 /bashweb.sh
parent8e4003e6b260d75859b1929c8c4264c2239bd074 (diff)
downloadbashweb-b304eeffd5a63e9e9dda54ea30a078cf0983f0bb.tar.gz
bashweb-b304eeffd5a63e9e9dda54ea30a078cf0983f0bb.tar.bz2
bashweb-b304eeffd5a63e9e9dda54ea30a078cf0983f0bb.zip
FIXME - Attempt to create preprocessor
Diffstat (limited to 'bashweb.sh')
-rwxr-xr-xbashweb.sh36
1 files changed, 19 insertions, 17 deletions
diff --git a/bashweb.sh b/bashweb.sh
index 1ca40ae..8893641 100755
--- a/bashweb.sh
+++ b/bashweb.sh
@@ -9,23 +9,25 @@
data=$(cat index.bhtml | envsubst)
main () {
- netcat -q 0 -l 1234 <<EOF
-HTTP/1.1 200 OK
-Server: Bashweb
-Date: $(date)
-Content-Type: text/html; charset=utf-8
-Content-Length: ${#data}
-Connection: keep-alive
-X-Frame-Options: SAMEORIGIN
-X-XSS-Protection: 1; mode=block
-Cache-Control: private, no-cache, no-store, must-revalidate
-X-Content-Type-Options: nosniff
-Pragma: no-cache
-Expires: Sat, 01 Jan 2000 00:00:00 GMT
-Referrer-Policy: no-referrer-when-downgrade
-
-$data
-EOF
+# netcat -q 0 -l 1234 <<EOF
+#HTTP/1.1 200 OK
+#Server: Bashweb
+#Date: $(date)
+#Content-Type: text/html; charset=utf-8
+#Content-Length: ${#data}
+#Connection: keep-alive
+#X-Frame-Options: SAMEORIGIN
+#X-XSS-Protection: 1; mode=block
+#Cache-Control: private, no-cache, no-store, must-revalidate
+#X-Content-Type-Options: nosniff
+#Pragma: no-cache
+#Expires: Sat, 01 Jan 2000 00:00:00 GMT
+#Referrer-Policy: no-referrer-when-downgrade
+#
+#$data
+#$(./preprocessor/url.sh)
+#EOF
+ netcat -q 0 -l 1234 < /tmp/backpipe | ./proprocessor/main.sh 1> /tmp/backpipe
}
while true