Skip to content

Instantly share code, notes, and snippets.

@Pipeliner
Created March 10, 2013 18:26
Show Gist options
  • Save Pipeliner/5129758 to your computer and use it in GitHub Desktop.
Save Pipeliner/5129758 to your computer and use it in GitHub Desktop.
require 'socket'
socks = []
1.upto(254).each do |oct|
s = UDPSocket.new
s.bind("10.23.7.#{oct}", 1338)
socks << s
end
a = ""
33.times do
rs = IO.select(socks)
a += rs[0][0].recv(1)
end
p a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment