Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
2.1 kB
2
Indexable
from urllib import response
import requests
import json
import time

def choices():
    print("Creation Shop Register Script By Ken Samonte")
    print("==================================================")
    print("Please Set-Up your Account First")
    time.sleep(2.0)
    invite_code = "be5cb3"
    password = "Kensamonte11"
    time.sleep(1.0)
    print("You Have Set Up Your Referral and Password Successfully")
    print("===================================================")
    time.sleep(5.0)
    def register ():
        mobile_number = input("Mobile Number: ")
        payload = json.dumps({"mobile": mobile_number, "type":"register"})
        request = requests.post("https://www.creationshops.com/captcha/sms", data=payload)
        response = request.text
        req = json.loads(response)
        f = req["msg"]
        if f == "ok":
            otp = input("Enter One Time Pin: ")
            reg = json.dumps({"mobile": mobile_number,"code": otp,"password": password,"invite_code": invite_code,"agent_code":"","appsflyer_id":"","cid":""})
            freg = requests.post("https://www.creationshops.com/account/register", data=reg)
            r = freg.text
            q = json.loads(r)
            s = q["msg"]
            if s == "ok":
                print("Account Created Successfully")
                print("Mobile Number: " + mobile_number)
                repeat = input("Do you want to register again?")
                if repeat == 'yes':
                    print("===============================================")
                    register()
                else:
                    print("See yah")
                    exit()
        else:
            print("Failed to Send OTP")
            repeat = input("Do you want to register again? ")
            if repeat == 'yes':
                print("===============================================")
                register()
            else:
                print("See yah")
                exit()
    register()
choices()