Sysadmin Notebook
Showing posts with label
netcat
.
Show all posts
Showing posts with label
netcat
.
Show all posts
Monday, 9 February 2015
One line web server
The following one line script will create a web server running on port 80 using nc (netcat):
while true; do { echo -e 'HTTP/1.1 200 OK\r\n'; cat index.html; } | nc -l 8080; done
Possibly Related Posts
Older Posts
Home
Subscribe to:
Comments (Atom)