Skip to content

Instantly share code, notes, and snippets.

require 'net/http'
require 'uri'
code_sym = Hash.new("o").merge "302" => "?", "200" => ".", "404" => "x", "503" => "*"
uri = URI.parse(ARGV.first)
puts "Trying : #{uri.host} at #{uri.path}"
while(true)
begin
res = Net::HTTP.get_response(uri)