Advertisement
Guest User

Untitled

a guest
Oct 26th, 2015
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.94 KB | None | 0 0
  1. require_relative'lib/hackex'
  2. require 'open-uri'
  3. n = 0
  4. puts "How many Accounts should I create?"
  5. num = gets.chomp
  6. while num.to_i >= n
  7.   rand_raw = open('http://api.randomuser.me/?gender=male?nat=us').read.delete!("\n")
  8. rand = JSON.parse(rand_raw)
  9.  
  10. name = rand["results"][0]["user"]["username"].to_s.delete('results')
  11. pw = rand["results"][0]["user"]["password"]
  12. mail = name + "@gmail.com"
  13.   puts "Creating account #{n.to_s} of #{}num.to_s"
  14.   rand_raw = open('http://api.randomuser.me/?gender=male?nat=us').read.delete!("\n")
  15. rand = JSON.parse(rand_raw)
  16.  
  17. name = rand["results"][0]["user"]["username"].to_s.delete('results')
  18. pw = rand["results"][0]["user"]["password"]
  19. mail = name + "@gmail.com"
  20. HackEx.LoginDo(T3TR!PCK3@gmail.com, !NFPCK20001) do |http, auth_token, user|
  21.   HackEx::Request.Do(http, HackEx::Request.CreateUser("name", "mail", " pw"))
  22.   open("accounts1.txt", 'a') { |f|
  23.   f << mail + ";" + pw
  24.   f << "\n"
  25. }
  26.   n += 1
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement