Skip to content

Instantly share code, notes, and snippets.

@nohtyp
Created February 21, 2015 01:19
Show Gist options
  • Select an option

  • Save nohtyp/fa710a09b6a79b165fe3 to your computer and use it in GitHub Desktop.

Select an option

Save nohtyp/fa710a09b6a79b165fe3 to your computer and use it in GitHub Desktop.
Server side ruby script
#!/usr/bin/env ruby
require 'socket'
server = TCPServer.new 2000
loop do
client = server.accept
client.puts '/etc/passwd'
client.close
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment