Advertisement
Guest User

Untitled

a guest
May 5th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def generate_url(length=7)
  2. protocall = %w(https:// http://)
  3. body = rand(36**length).to_s(36)
  4. num = rand(1..999).to_s
  5. url = "#{protocall.sample.to_s}#{body}.com/php?id=#{num}"
  6. green(url)
  7. end
  8.  
  9. #<= http://s857yi5.com/php?id=168
  10. #<= https://6rm0oq3.com/php?id=106
  11. #<= http://skhvk1n.com/php?id=306
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement