Exemplo n.º 1
0
def patch(backup):
    import sign_support
    unsign_support.goUnsign(backup, CMA, False, "PGAME", account, ".")
    print "Patching " + backup + " With VHBL."
    if os.path.exists(CMA + "/EXTRACTED/PGAME/" + backup +
                      "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup +
                      "/PBOOT.PBP"):
        print "Removing VHBL.."
        os.remove(CMA + "/EXTRACTED/PGAME/" + backup +
                  "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup +
                  "/PBOOT.PBP")
        print "Re-Patching VHBL"
    shutil.copy(
        defs.getWorkingDir() + "/easyinstallers/VHBL/patch/PBOOT.PBP",
        CMA + "/EXTRACTED/PGAME/" + backup +
        "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup + "/PBOOT.PBP")
    print "Signing to: " + account
    sign_support.goSign(account, "PGAME", backup, True)
    print "Copying Savedata To " + CMA + "/PSAVEDATA/" + defs.getAid(
        account) + "/VHBL01234"
    if not os.path.exists(CMA + "/PSAVEDATA/" + defs.getAid(account) +
                          "/VHBL01234"):
        shutil.copytree(
            defs.getWorkingDir() + "/easyinstallers/VHBL/VHBL01234",
            CMA + "/PSAVEDATA/" + defs.getAid(account) + "/VHBL01234")
    import easyInstallers
    tkMessageBox.showinfo(
        title="ARK Easy Installer",
        message=
        "VHBL Backup Created!\n(Note: Icon will be the same as base game)\nBe sure to copy the VHBL Savedata file too!"
    )
    easyInstallers.vp_start_gui()
Exemplo n.º 2
0
def patch(backup):
    import sign_support
    print "Patching " + backup + " With VHBL."
    unsign_support.goUnsign(backup, CMA, False, "PGAME", account, ".")
    print "Patching With ARK-2"
    shutil.copy(
        defs.getWorkingDir() + "/easyinstallers/ARK/patch/PBOOT.PBP",
        CMA + "/EXTRACTED/PGAME/" + backup +
        "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup + "/")
    print "Signing to: " + account
    sign_support.goSign(account, "PGAME", backup, True)
    if tkMessageBox.askyesno(title="OneMenu?",
                             message="Would you like to use ONEMENU?"):
        print "Copying Savedata To " + CMA + "/PSAVEDATA/" + defs.getAid(
            account) + "/ARK_01234"
        if not os.path.exists(CMA + "/PSAVEDATA/" + defs.getAid(account) +
                              "/ARK_01234"):
            shutil.copytree(
                defs.getWorkingDir() + "/easyinstallers/ARK/ONEMENU",
                CMA + "/PSAVEDATA/" + defs.getAid(account) + "/ARK_01234")
    else:
        print "Copying Savedata To " + CMA + "/PSAVEDATA/" + defs.getAid(
            account) + "/ARK_01234"
        if not os.path.exists(CMA + "/PSAVEDATA/" + defs.getAid(account) +
                              "/ARK_01234"):
            shutil.copytree(
                defs.getWorkingDir() + "/easyinstallers/ARK/ARK_01234",
                CMA + "/PSAVEDATA/" + defs.getAid(account) + "/ARK_01234")
    import easyInstallers
    tkMessageBox.showinfo(
        title="ARK Easy Installer",
        message=
        "ARK Backup Created! (Note: Icon will be the same as base game)\nBe sure to copy the PSP ARK-2 Savedata file too!"
    )
    easyInstallers.vp_start_gui()
def patch(backup):
    import sign_support
    unsign_support.pushVars(account, "PGAME", ".")
    unsign_support.goUnsign(backup, CMA)
    print "Patching With VHBL"
    shutil.copy(
        defs.getWorkingDir() + "/easyinstallers/VHBL/patch/PBOOT.PBP",
        CMA + "/EXTRACTED/PGAME/" + backup +
        "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup + "/")
    print "Signing to: " + account
    sign_support.goSign(account, "PGAME", backup, True)
    print "Copying Savedata To " + CMA + "/PSAVEDATA/" + defs.getAid(
        account) + "/VHBL01234"
    if not os.path.exists(CMA + "/PSAVEDATA/" + defs.getAid(account) +
                          "/VHBL01234"):
        shutil.copytree(
            defs.getWorkingDir() + "/easyinstallers/VHBL/VHBL01234",
            CMA + "/PSAVEDATA/" + defs.getAid(account) + "/VHBL01234")
    import easyInstallers
    tkMessageBox.showinfo(
        title="VHBL Easy Installer",
        message=
        "VHBL Backup Created! (Note: Icon will be the same as base game)")
    easyInstallers.close_window(root)
    easyInstallers.vp_start_gui()
Exemplo n.º 4
0
def createBackup(emulator, backup, account):
    print emulator, account, backup
    import unsign_support
    unsign_support.goUnsign(cmaBackup=backup,
                            account=account,
                            load="PGAME",
                            resign=".")
    from distutils.dir_util import copy_tree
    print "Copying " + defs.getWorkingDir(
    ) + "/easyinstallers/EmuBubble/FILES/" + emulator + " To " + defs.getCmaDir(
    ) + "/EXTRACTED/PGAME/" + backup + "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup + "/"
    copy_tree(
        defs.getWorkingDir() + "/easyinstallers/EmuBubble/FILES/" + emulator,
        defs.getCmaDir() + "/EXTRACTED/PGAME/" + backup +
        "/game/ux0_pspemu_temp_game_PSP_GAME_" + backup + "/")
    import sign_support
    sign_support.goSign(account, "PGAME", backup, True)
    print "Removing: " + defs.getCmaDir() + "/EXTRACTED/PGAME/" + backup
    shutil.rmtree(defs.getCmaDir() + "/EXTRACTED/PGAME/" + backup + "/")
    tkMessageBox.showinfo(title="Emulator Bubble",
                          message=emulator +
                          " Backup Created! (remember to refresh QCMA)")
    emububble.destroy_New_Toplevel_1()
    import easyinstallers.EmuBubble.chooseBackup as CB
    CB.destroy_Unsign_Backup()
def patch(backup):
    import sign_support
    unsign_support.pushVars(account, "PGAME", ".")
    unsign_support.goUnsign(backup, CMA)
    print "Cloning bubble.."
    import clone
    clone.vp_start_gui(account, backup, CMA)
def patch(backup):
    import sign_support
    unsign_support.pushVars(account, "SYSTEM", ".")
    unsign_support.goUnsign(backup, CMA)
    print "Setting All URI Calls To User Mode."
    dbPath = CMA + "/EXTRACTED/SYSTEM/" + backup + "/ur0_shell/db/app.db"
    print "Opening: " + dbPath
    appDatabase = sqlite3.connect(dbPath)
    print "Executing " + sqlQuery + "To app.db!"
    appDatabase.executescript(sqlQuery)
    appDatabase.close()
    print("Uri's Patched.")
    sign_support.goSign(account, "SYSTEM", backup, True)
    if not os.path.exists(CMA + "/EXTRACTED/APP/URICALL00"):
        shutil.copytree(
            defs.getWorkingDir() + "/easyinstallers/UriCaller/URICALL00",
            CMA + "/EXTRACTED/APP/URICALL00")
    sign_support.goSign(account, "APP", "URICALL00", True)
    tkMessageBox.showinfo(
        title="UriCaller",
        message=
        "Completed! Refresh QCMA Database then restore the SYSTEM Backup + The URICaller App."
    )
    easyInstallers.close_window(root)
    easyInstallers.vp_start_gui()
Exemplo n.º 7
0
    def __init__(self, top = None):
        """This class configures and populates the toplevel window.
        top is the toplevel containing window."""
        _bgcolor = '#d9d9d9'
        _fgcolor = '#000000'
        _compcolor = '#d9d9d9'
        _ana1color = '#d9d9d9'
        _ana2color = '#d9d9d9'
        font10 = '-family {DejaVu Sans Mono} -size 12 -weight normal -slant roman -underline 0 -overstrike 0'
        self.style = ttk.Style()
        if sys.platform == 'win32':
            self.style.theme_use('winnative')
        self.style.configure('.', background=_bgcolor)
        self.style.configure('.', foreground=_fgcolor)
        self.style.map('.', background=[('selected', _compcolor), ('active', _ana2color)])
        top.geometry('750x500+218+86')
        top.title('Unsign Backup')
        top.configure(highlightcolor='black')
        cmadir = open('cmadir.txt', 'r')
        CMA = cmadir.read()
        a = 0
        self.Label1 = Label(top)
        self.Label1.place(relx=0.02, rely=0.02, height=18, width=96)
        self.Label1.configure(text='What Backup?')
        self.Label1.configure(width=96)
        self.backupList = ScrolledListBox(top)
        self.backupList.place(relx=0.01, rely=0.06, relheight=0.87, relwidth=0.97)
        self.backupList.configure(background='white')
        self.backupList.configure(font=font10)
        self.backupList.configure(highlightcolor='#d9d9d9')
        self.backupList.configure(selectbackground='#c4c4c4')
        self.backupList.configure(width=10)
        print 'Looking For Backups In: ' + CMA + '/' + unsign_support.getLoad() + '/' + defs.getAid(unsign_support.getAccount())
        for root, dir, files in defs.walklevel(CMA + '/' + unsign_support.getLoad() + '/' + defs.getAid(unsign_support.getAccount()),0):
            for items in fnmatch.filter(dir, '*'):
                a += 1
                if defs.isEncryptedApp(CMA + '/' + unsign_support.getLoad() + '/' + defs.getAid(unsign_support.getAccount()) + '/' + items):
                    title = sfoParser.main(CMA + '/' + unsign_support.getLoad() + '/' + defs.getAid(unsign_support.getAccount()) + '/' + items + '/sce_sys/param.sfo')
                    if pfs.isKeyKnown(items):
                        self.backupList.insert(a, title + ' [PFS] (' + items + ')')
                    else:
                        self.backupList.insert(a, title + ' (' + items + ')')
                elif unsign_support.getLoad() == 'SYSTEM' and defs.isBackup(CMA + '/' + unsign_support.getLoad() + '/' + defs.getAid(unsign_support.getAccount()) + '/' + items + '/' + items):
                    self.backupList.insert(a, items)

        self.Button1 = Button(top)
        self.Button1.place(relx=0.83, rely=0.94, height=26, width=117)
        self.Button1.configure(activebackground='#d9d9d9')
        if unsign_support.getLoad() != "SYSTEM":
            self.Button1.configure(command=lambda: unsign_support.goUnsign(defs.getTitleID(self.backupList.get(ACTIVE)), CMA, False,unsign_support.getLoad(), unsign_support.getAccount()))
        else:
            self.Button1.configure(command=lambda: unsign_support.goUnsign(self.backupList.get(ACTIVE), CMA, False,unsign_support.getLoad(), unsign_support.getAccount()))
        self.Button1.configure(text='Unsign & Extract')
        if unsign_support.getResign() == False:
            self.Button2 = Button(top)
            self.Button2.place(relx=0.01, rely=0.94, height=26, width=120)
            self.Button2.configure(activebackground='#d9d9d9')
            self.Button2.configure(command=lambda: unsign_support.goUnsign(defs.getTitleID(self.backupList.get(ACTIVE)), CMA, True,unsign_support.getLoad(), unsign_support.getAccount()))
            self.Button2.configure(text='Create .cmbackup')
Exemplo n.º 8
0
def patch(backup):
    import sign_support
    unsign_support.goUnsign(backup, CMA, False, "SYSTEM", account, ".")
    print "Patching With Featured App Removed!"
    dbPath = CMA + "/EXTRACTED/SYSTEM/" + backup + "/ur0_shell/db/app.db"
    print "Opening: " + dbPath
    appDatabase = sqlite3.connect(dbPath)
    print "Executing " + sqlQuery + "To app.db!"
    appDatabase.executescript(sqlQuery)
    appDatabase.close()
    sign_support.goSign(account, "SYSTEM", backup, ".")
    tkMessageBox.showinfo(title="FeaturedRemover", message="Backup Patched!")
    easyInstallers.vp_start_gui()
Exemplo n.º 9
0
def patch(backup):
    import sign_support
    unsign_support.goUnsign(backup, CMA, False, "SYSTEM", account, ".")
    print "Patching With Hacked Whitelist"
    dbPath = CMA + "/EXTRACTED/SYSTEM/" + backup + "/ur0_shell/db/app.db"
    print "Opening: " + dbPath
    appDatabase = sqlite3.connect(dbPath)
    print "Executing " + sqlQuery + "To app.db!"
    appDatabase.executescript(sqlQuery)
    appDatabase.close()
    sign_support.goSign(account, "SYSTEM", backup, True)
    tkMessageBox.showinfo(title="WHITELISTER",
                          message="Backup Patched! Restore Backup '" + backup +
                          "' To Hack Your Whitelist")
    easyInstallers.close_window(root)
    easyInstallers.vp_start_gui()
Exemplo n.º 10
0
def patch(backup):
    unsign_support.goUnsign(backup, CMA, False, "PGAME", account, ".")
    print "Cloning bubble.."
    import clone
    clone.vp_start_gui(account, backup, CMA)