예제 #1
0
def addaccount(aid, acc):
    if aid == "" and acc != "" and acc.find(',') == -1:
        defs.showMessage(title="Error 001", message="Please enter your AID.")

    if acc == "" and aid != "" and aid.find(',') == -1:
        defs.showMessage(title="Error 002", message="Please enter Your Account Name")

    if acc == "" and aid == "":
        defs.showMessage(title="Error 003", message="Please enter Your Account Name And your AID.")

    if len(aid) == 16:
        if acc != "" and aid != "" and acc.find(',') == -1:

            text_file = open("accounts/" +acc, "w+")
            text_file.write(aid)
            text_file.close()

            import urllib
            urllib.urlretrieve("http://cma.henkaku.xyz/?aid=" + aid, "tempKey.html")
            text_file = open("keys/"+acc,"w+")
            text_file.write(defs.getKey())
            text_file.close()

            import account
            account.close_window(root)
            defs.showMessage(title="Thank You!", message="Account: " + acc + " [" + aid + "] Was Registered.")
            import accMgr
            accMgr.vp_start_gui()

    sys.stdout.flush()
예제 #2
0
opts, args = getopt.getopt(sys.argv[1:], 'x:y:')
try:
    if args[0] == "m":
        print "Running in MANUAL mode."
        print "In this mode you have to setup the application yourself."
        print "The only reason i added this mode is because people keep getting errors where\nthe application opens and then closes immediatley."
        print "So yea you just need to enter a few things: "
        PSNName = raw_input("What is your PSN Account Name? ")
        aid = raw_input("What is your AID/PSID? ")
        CmaDir = raw_input("Where is your QCMA Backups Directory? ")
        print "Downloading key.. - Make sure you are connected to the internet and have access to cma.henkaku.xyz!"
        urllib.urlretrieve('http://cma.henkaku.xyz/?aid=' + aid,
                           'tempKey.html')
        print "Key Downloaded."
        key = defs.getKey()
        print "Set 'key' to defs.getKey"
        text_file = open('keys/' + PSNName, 'w+')
        print "Opening text file keys/" + PSNName
        text_file.write(key)
        print "Writing " + key + " to file.."
        text_file.close()
        print "Closing text file.."
        text_file = open('accounts/' + PSNName, 'w+')
        print "Opening text file accounts/" + PSNName
        text_file.write(aid)
        print "Writing " + aid + " to file.."
        text_file.close()
        print "Closing text file."
        text_file = open('cmadir.txt', 'w+')
        print "Opening cmadir.txt"