9. February, 2008
9. February, 2008
in by Michael Neumann
ruby -rsocket -e's=TCPServer.new(5**5);loop{_=s.accept;_<<"HTTP/1.0 \
200 OK\r\n\r\n#{File.read(_.gets.split[1])rescue nil}";_.close}'

Then, to get the message of the day, point your browser to http://localhost:3125/etc/motd.