diff options
Diffstat (limited to 'bashweb.sh')
-rwxr-xr-x | bashweb.sh | 36 |
1 files changed, 19 insertions, 17 deletions
@@ -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 |