Skip to content

Instantly share code, notes, and snippets.

@mathias
Created October 2, 2011 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathias/1256914 to your computer and use it in GitHub Desktop.
Save mathias/1256914 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'faker'
require 'net/http'
domain = "gmail.com"
10000.times do
user_name = Faker::Internet.free_email
http = Net::HTTP.new(domain)
path = "/login"
post_data = "username=#{user_name}&password=#{user_name}"
resp, data = http.post(path, post_data)
puts resp.message
puts user_name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment