straight-tamago / misakaX

iOS /iPadOS 16.0 - 18.0 / 18.1 beta 4, An ultimate customization tool, uilitizing the bug that makes TrollRestore possible.
Other
2.88k stars 94 forks source link

Domain name error #391

Open repoluhun opened 1 week ago

repoluhun commented 1 week ago

The error I get is the following using both the Release version and the pre-release version of the MacOS version. I'm using an iPhone 12 running iOS 18.1 (release, non-beta) which SHOULD in theory work with the pre-release just fine.

pymobiledevice3.exceptions.PyMobileDevice3Exception: Device link error: {'ErrorCode': 205, 'ErrorDescription': 'Domain name cannot contain a slash

It points to the 94th line in restore.py which is a part of the restore_file function, which is the following. The 94th line is the one containing "else:"

def restore_files(files: list, reboot: bool = False, lockdown_client: LockdownClient = None):
    # create the files to be backed up
    files_list = [
    ]
    sorted_files = sorted(files, key=lambda x: x.restore_path, reverse=True)
    # add the file paths
    last_domain = ""
    last_path = ""
    exploit_only = True
    for file in sorted_files:
        if file.domain == None:
            last_domain = concat_exploit_file(file, files_list, last_domain)
        else:
            last_domain, last_path = concat_regular_file(file, files_list, last_domain, last_path)
            exploit_only = False

    # crash the restore to skip the setup (only works for exploit files)
    if exploit_only:
        files_list.append(backup.ConcreteFile("", "SysContainerDomain-../../../../../../../.." + "/crash_on_purpose", contents=b""))

    # create the backup
    back = backup.Backup(files=files_list)

    perform_restore(backup=back, reboot=reboot, lockdown_client=lockdown_client)

Wha I found was that the device CAN be rebooted with the program's reboot button so I assume that the connection isn't the issue. If you need any more issues to help with fixing this I'd be glad to help

wyzhw commented 6 days ago

Same!!

leminlimez commented 5 days ago

a file path isnt converting properly, so something you are applying is causing it

repoluhun commented 5 days ago

a file path isnt converting properly, so something you are applying is causing it

I'm aware, however I'm literally not even checking anything to be applied, the app itself is trying to apply the gestalt to the wrong path