Skip to content

Instantly share code, notes, and snippets.

@boxofrad
Last active November 4, 2016 14:19
Show Gist options
  • Save boxofrad/7288dad874ff82c4f3e52262137885f3 to your computer and use it in GitHub Desktop.
Save boxofrad/7288dad874ff82c4f3e52262137885f3 to your computer and use it in GitHub Desktop.
require 'hexdump'
BUFFER_SIZE = 1024
loop do
data = socket.recv(BUFFER_SIZE)
Hexdump.dump(data)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment