Sysadmin Notebook
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
1 comment:
João Ferreira
16 April 2015 at 02:37
:D
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
:D
ReplyDelete