Skip to content

xHasKx/http-server-in-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Static HTTP 1.0 server in Bash Shell with Netcat only

Don't ask me "why". Because I can.

Of course, there are better solutions to serve static, but Bash also can do it.

screenshot

Dependencies

Expecting you have such binaries available:

  • bash (tested on GNU bash, versiya 5.1.16(1)-release (x86_64-pc-linux-gnu))
  • nc (any netcat able to do nc -l -k -p {PORT})
  • find (tested on find (GNU findutils) 4.9.0)
  • stat (tested on stat (GNU coreutils) 9.1)
  • file (tested on file-5.43)

About

Static HTTP 1.0 server in Bash Shell with Netcat only

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages