Advertisement
jbg1k

flood.py

Nov 17th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.21 KB | None | 0 0
  1. import requests
  2. import os
  3. import random
  4. import string
  5. import json
  6.  
  7. chars = string.ascii_letters + string.digits + '!@#$%^&*()'
  8.  
  9. # This is an array of email extensions; you can add whatever in here
  10. emails = ["outlook.com", "gmail.com", "yahoo.com", "hotmail.com", "aol.com", "icloud.com", "mail.com", "fbi.gov", "whitehouse.gov", "dhs.gov", "cbp.gov", "cbp.dhs.gov", "usss.dhs.gov", "jagex.com" , "microsoft.com", "xbox.com"]
  11.  
  12. random.seed = (os.urandom(1024))
  13.  
  14. # This is the URL you want to flood. Should be a login page
  15. url = 'https://secure.runescape.comi-s.top/m=weblogin/a=13/loginform534,487,898,98498898,1995'
  16.  
  17. names = json.loads(open('names.json').read())
  18.  
  19. random.shuffle(names)
  20.  
  21. n = 0
  22.  
  23. for name in names:
  24.     name_extra = ''.join(random.choice(string.digits))
  25.  
  26.     email = name.lower() + name_extra + '@' + random.choice(emails)
  27.     username = name.lower() + name_extra
  28.     password = ''.join(random.choice(chars) for i in range(9))
  29.  
  30.     r = requests.post(url, allow_redirects=False, data={
  31.         'username': username,
  32.         'password': password
  33.     })
  34.  
  35.     n += 1
  36.        
  37.     print ("%s. Sending username %s and password %s. Response: %s. Response time: %s" % (n, username, password, r.status_code, r.elapsed.total_seconds()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement