Skip to content

Instantly share code, notes, and snippets.

@chipiga
Created May 21, 2010 15:15
Show Gist options
  • Save chipiga/408960 to your computer and use it in GitHub Desktop.
Save chipiga/408960 to your computer and use it in GitHub Desktop.
require 'net/http'
response = nil
Net::HTTP.start('furious-rain-32.heroku.com', 80) {|http|
s = ['r','u','b','y','R','U','B','Y',0,1,8,6]
s.each do |s1|
s.each do |s2|
s.each do |s3|
s.each do |s4|
s.each do |s5|
pwd = "#{s1}#{s2}#{s3}#{s4}#{s5}"
puts pwd
response = http.head("/map/definition?pwd=#{pwd}")
raise pwd if response.code != '302'
end
end
end
end
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment