Guest User

AccCreator

a guest
Sep 24th, 2016
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. from urllib.request import urlopen
  2. from urllib.parse import urlencode
  3.  
  4. def createAccount(Username, Password):
  5. Data = urlencode({"username": Username,
  6. "userpass": Password,
  7. "usercol": "000255000",
  8. "action": "create"}).encode()
  9.  
  10. Response = urlopen("http://www.xgenstudios.com/stickarena/stick_arena.php", Data).read().decode()
  11.  
  12. if "success" in Response:
  13. Returned = "success"
  14. else:
  15. Returned = "fail"
  16.  
  17. return Returned
  18.  
  19. if __name__ == "__main__":
  20. Username = "" # the username you want to make
  21. Password = "" # the password you want to login
  22.  
  23. Current = 1
  24. Max = 500
  25.  
  26. while Current < Max:
  27. MassUsername = Username + str(Current)
  28.  
  29. if createAccount(MassUsername, Password) == "success":
  30. Accounts = open("accounts.txt", "a+")
  31. Accounts.write("{};{}\n".format(MassUsername, Password))
  32. Accounts.close()
  33.  
  34. print("Successfully created " + MassUsername)
  35. else:
  36. print("Failed to create " + MassUsername + "; moving on...")
  37.  
  38. Current += 1
Add Comment
Please, Sign In to add comment