Created
February 21, 2015 01:19
-
-
Save nohtyp/fa710a09b6a79b165fe3 to your computer and use it in GitHub Desktop.
Server side ruby script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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