HTTP server by bash
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
- returns
- html
- css
- javascript
- plain text
- jpeg
- png
- (others: return as
application/octet-stream
)
- encoding
- gzip (requires
gzip
command) - deflate (requires
pigz
command)
- gzip (requires
- cgi(EXPERIMENTAL)
- executes
.cgi
file (+x
flag required)
- executes
- security
- returns 403 against path traversal
- bash ^4.3
- nkf
DO NOT USE shttpd ON YOUR PRODUCTION (OR INSECURE) ENVIRONMENT
WE DO NOT TAKE ANY RESPONSIBILITIES