Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from urllib.request import urlopen
- from urllib.parse import urlencode
- def createAccount(Username, Password):
- Data = urlencode({"username": Username,
- "userpass": Password,
- "usercol": "000255000",
- "action": "create"}).encode()
- Response = urlopen("http://www.xgenstudios.com/stickarena/stick_arena.php", Data).read().decode()
- if "success" in Response:
- Returned = "success"
- else:
- Returned = "fail"
- return Returned
- if __name__ == "__main__":
- Username = "" # the username you want to make
- Password = "" # the password you want to login
- Current = 1
- Max = 500
- while Current < Max:
- MassUsername = Username + str(Current)
- if createAccount(MassUsername, Password) == "success":
- Accounts = open("accounts.txt", "a+")
- Accounts.write("{};{}\n".format(MassUsername, Password))
- Accounts.close()
- print("Successfully created " + MassUsername)
- else:
- print("Failed to create " + MassUsername + "; moving on...")
- Current += 1
Add Comment
Please, Sign In to add comment