#!/bin/bash meta[title]='HTTP.sh' meta[author]='Dominika, Laura, Patrycja' meta[description]='HTTP.sh - a quick and dirty webserver, written in Bash' meta[keywords]='bash,http,web,server,http.sh' meta[lang]='en' source templates/head.sh echo " " if [[ ! ${cookies[sh_session]} ]]; then echo "
Log in or Register
" else echo "
Logged in as ${cookies[username]}| Log out
" fi echo "

HTTP.sh - a quick and dirty webserver, written in Bash

Although we've seen several attempts to create a Bash web framework, all of them fell flat one way or another.
We've decided to change that. Did we succeed? You be the judge!

Download

This web server was tested as much as the time allowed, but we can't say for certain that it's bug free.
If you want to check out our (dirty) code, download the current tarball.

We also can't guarantee that HTTP.sh is asbestos free, so proceed with caution.

Dependencies

  1. Bash or 100% compatible shell
  2. Ncat - nc/nc.traditional WILL NOT work
  3. GNU coreutils (dd, base64 and others)
  4. pkill
  5. mktemp
  6. sha1sum, sha256sum
  7. curl (only for a few demos)
  8. certbot (only if you'd like to get a SSL cert)

Demos

  1. bashchan (an imageboard)
  2. bashbin (a pastebin)
  3. bashtube (a YouTube frontend)
  4. bashurl (a URL shortener)
  5. bashupload (a file uploader)
  6. bashallgero (a frontend for a Polish auction site)
  7. listing (just a file listing, but it looks mighty cool)

Made by reds, selfisekai and ptrcnull. IF YOU LOG IN, THIS SITE WILL STORE COOKIES ON YOUR PERSONAL COMPUTING DEVICE"