#!/bin/bash
# Napa.sh: Efficient and secure web server. By AlpT (@freaknet.org)
page=$1; port=$2
if [ -z "$1" ]; then echo "Usage: napa /path/to/index.html [PORT]"; exit 1; fi
if [ -z "$2" ]; then port=80; fi
while [ 0 ]; do cat $page | nc -l -p $port -q 0; done
