├── README.md ├── genshingenerator.py ├── igns.txt └── output.txt /README.md: -------------------------------------------------------------------------------- 1 | # GenshinImpact-Generator 2 | Single Threaded Account generator for Genshin Impact 3 | 4 | ## Requirements 5 | Python 3.8 6 | Requests and JSON library 7 | 8 | `$ pip3 install requests` 9 | 10 | 11 | ## Usage 12 | -Load your usernames in the list 13 | -Open the generator and type in a default password then it will automaticly start 14 | -Each account created will be stored in a username:password format in the output.txt file 15 | 16 | 17 | **This is only for educational purposes don't abuse!** 18 | -------------------------------------------------------------------------------- /genshingenerator.py: -------------------------------------------------------------------------------- 1 | import json 2 | import requests 3 | 4 | def createAcc(username, password): 5 | success = False 6 | payload = "is_crypto=false¬_login=0&username="+username+"&password="+password 7 | headers = {'Content-Type':'application/x-www-form-urlencoded'} 8 | req = requests.session() 9 | req.headers.update(headers) 10 | req1 = req.post("https://webapi-os.account.mihoyo.com/Api/regist_by_account", data=payload) 11 | try: 12 | if(json.loads(req1.text)["data"]['msg'] == "Success"): 13 | success = True 14 | except: 15 | print("error") 16 | return success 17 | ignlist = open("igns.txt","r").readlines() 18 | password = input("Type password: ") 19 | output = open('output.txt', 'w') 20 | created = [] 21 | for x in ignlist: 22 | status = createAcc(x.replace("\n",""), password) 23 | account = x.replace("\n","") + ":" + password 24 | if status == True: 25 | print(account) 26 | output.write(account+"\n") 27 | -------------------------------------------------------------------------------- /igns.txt: -------------------------------------------------------------------------------- 1 | default -------------------------------------------------------------------------------- /output.txt: -------------------------------------------------------------------------------- 1 | default --------------------------------------------------------------------------------