Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_relative'lib/hackex'
- require 'open-uri'
- n = 0
- puts "How many Accounts should I create?"
- num = gets.chomp
- while num.to_i >= n
- rand_raw = open('http://api.randomuser.me/?gender=male?nat=us').read.delete!("\n")
- rand = JSON.parse(rand_raw)
- name = rand["results"][0]["user"]["username"].to_s.delete('results')
- pw = rand["results"][0]["user"]["password"]
- mail = name + "@gmail.com"
- puts "Creating account #{n.to_s} of #{}num.to_s"
- rand_raw = open('http://api.randomuser.me/?gender=male?nat=us').read.delete!("\n")
- rand = JSON.parse(rand_raw)
- name = rand["results"][0]["user"]["username"].to_s.delete('results')
- pw = rand["results"][0]["user"]["password"]
- mail = name + "@gmail.com"
- HackEx.LoginDo(T3TR!PCK3@gmail.com, !NFPCK20001) do |http, auth_token, user|
- HackEx::Request.Do(http, HackEx::Request.CreateUser("name", "mail", " pw"))
- open("accounts1.txt", 'a') { |f|
- f << mail + ";" + pw
- f << "\n"
- }
- n += 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement