aboutsummaryrefslogtreecommitdiff
path: root/bashweb.sh
diff options
context:
space:
mode:
authorMinteck <nekostarfan@gmail.com>2021-11-14 19:09:34 +0000
committerMinteck <nekostarfan@gmail.com>2021-11-14 19:09:34 +0000
commit4fa28842044d48626b51c94a67ccf623d9a9383f (patch)
tree052f1d0622ec06a3c8ef14f738fe23b39cafa41c /bashweb.sh
parentd13afb20bac0b682f7e42c9655bc2af65aa9784a (diff)
downloadbashweb-4fa28842044d48626b51c94a67ccf623d9a9383f.tar.gz
bashweb-4fa28842044d48626b51c94a67ccf623d9a9383f.tar.bz2
bashweb-4fa28842044d48626b51c94a67ccf623d9a9383f.zip
Commit
Diffstat (limited to 'bashweb.sh')
-rwxr-xr-xbashweb.sh28
1 files changed, 6 insertions, 22 deletions
diff --git a/bashweb.sh b/bashweb.sh
index aa2d1d0..2d572c6 100755
--- a/bashweb.sh
+++ b/bashweb.sh
@@ -6,32 +6,16 @@
## ##
##########################################################
-data=$(cat index.bhtml | envsubst)
+export bashweb_version="0.1.1"
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
-#$(./preprocessor/url.sh)
-#EOF
- netcat -q 0 -l 1234 < /tmp/backpipe | ./preprocessor/main.sh 1> /tmp/backpipe
+ nc -l -p 1234 < /tmp/backpipe | ./preprocessor/main.sh 1> /tmp/backpipe
}
+rm -f /tmp/backpipe
+mkfifo /tmp/backpipe
+
while true
do
- main &>log
+ main &>>log
done
-