https://github.com/sanketplus/netcat-http-server
Simple webserver using netcat.
https://github.com/sanketplus/netcat-http-server
Last synced: about 2 months ago
JSON representation
Simple webserver using netcat.
- Host: GitHub
- URL: https://github.com/sanketplus/netcat-http-server
- Owner: sanketplus
- Created: 2016-01-21T06:42:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-21T13:23:53.000Z (over 10 years ago)
- Last Synced: 2025-01-20T00:16:28.907Z (over 1 year ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# netcat-http-server
Simple webserver using netcat.
## Start the server
cd in to the code directory and start server with
$ rm -f /tmp/f;mkfifo /tml/f
$ cat /tmp/f | xargs -n 1 -d '\n' ./parser.sh 2>&1 | nc -lvk 127.0.0.1 1234 > /tmp/f
It will serve the contents in the code directory itself.
#### The server logic is in parser.sh file
#### Looks pretty much like python -m SimpleHTTPServer