Skip to content
HTTP server by bash
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
shttpd

README.md

shttpd

HTTP server by bash

Usage

Execute shttpd on your document root directory. For use on network, call from ncat (from nmap. not nc).

$ shttpd
$ ncat -kl -c shttpd localhost 3000 #open port 3000, keep port alive(-k)
$ ncat --ssl -kl -c 'SCHEME=https shttpd' localhost 3000 #run as https server

Features

  • returns
    • html
    • css
    • javascript
    • plain text
    • jpeg
    • png
    • (others: return as application/octet-stream)
  • encoding
    • gzip (requires gzip command)
    • deflate (requires pigz command)
  • cgi(EXPERIMENTAL)
    • executes .cgi file (+x flag required)
  • security
    • returns 403 against path traversal

Requirements

  • bash ^4.3
  • nkf

IMPORTANT NOTICE

DO NOT USE shttpd ON YOUR PRODUCTION (OR INSECURE) ENVIRONMENT
WE DO NOT TAKE ANY RESPONSIBILITIES

You can’t perform that action at this time.