edwin170 / downr1n

downgrade tethered checkm8 idevices ios 14, 15.
Apache License 2.0
259 stars 35 forks source link

./downr1n.sh: line 1298: cd: too many arguments #99

Closed alexeimarkov945 closed 6 months ago

alexeimarkov945 commented 6 months ago

I just fixed the old error: TypeError: function missing required argument 'initial_buffer_values' (pos 2) And now, I got the new error: [*] Command ran: sudo ./downr1n.sh --downgrade 14.0 [21:13:08.413][3] usbmuxd v1.1.1 starting up [21:13:08.414][3] Using libusb 1.0.25 [21:13:08.418][3] Initialization complete [21:13:08.419][3] Connecting to new device on location 0x30021 as ID 1 [21:13:08.419][3] Connected to v2.0 device 1 on location 0x30021 with serial number ramdisk tool Sep 18 2022 20:14:43 downr1n | Version 3.0 Created by edwin, thanks palera1, and all people creator of path file boot

[] Waiting for devices [] Detected ramdisk mode device [] Rebooting device in SSH Ramdisk [21:13:09.426][2] device_control_input: Got unhandled payload type 5 [21:13:14.616][3] Removed device 1 on location 0x30021 [] Waiting for device in recovery mode [] Waiting for devices [] Detected recovery mode device [] Getting device info... Detected cpid, your cpid is 0x8003 Detected model, your model is n66map Detected deviceid, your deviceid is iPhone8,2 [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (2) [] Device entered DFU! [-] we found ipsw/iPhone_5.5_14.0_18A373_Restore.ipsw, do you want to use it ? please write, yes or no yes ipsw/iPhone_5.5_14.0_18A373_Restore.ipsw [] Checking if the ipsw is for your device [] Checking ipsw version [] Extracting ipsw, hang on please ... [] Got extract the IPSW successfully [] Creating ramdisk [-] Ramdisk is already created so SKIPPING ... [] Booting ramdisk [/] We couldn't get the ipsw curl. we will proceed with -k option with curl usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Now you can boot untrusted images. usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [] Waiting for the ramdisk to finish booting libusb: warning [op_get_configuration] device unconfigured libusb: error [op_get_active_config_descriptor] device unconfigured [21:14:23.888][3] Could not get old configuration descriptor for device 3-41: LIBUSB_ERROR_NOT_FOUND [21:14:23.902][3] Connecting to new device on location 0x30029 as ID 2 [21:14:23.942][3] Connected to v2.0 device 2 on location 0x30029 with serial number ramdisk tool Sep 18 2022 20:14:43 [21:14:23.942][2] device_control_input: Got unhandled payload type 5 [21:14:24.850][2] device_control_input: Got unhandled payload type 5 Error connecting to device: No error information [] Mounting filesystems ... [] Dumpped SHSH [] Checking device version the version that the device is currently in is 15.8 [] extracting kernel ... TypeError: function missing required argument 'initial_buffer_values' (pos 2) ^C yenminh@yenminh-FMVD04001:/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main$ sudo python3.9 -m pip uninstall pylzss lzss sudo: python3.9: command not found yenminh@yenminh-FMVD04001:/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main$ sudo python3 -m pip uninstall pylzss lzss WARNING: Skipping pylzss as it is not installed. Found existing installation: lzss 0.3 Uninstalling lzss-0.3: Would remove: /usr/local/lib/python3.10/dist-packages/lzss-0.3-py3.10-linux-x86_64.egg Proceed (Y/n)? y Successfully uninstalled lzss-0.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv yenminh@yenminh-FMVD04001:/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main$ sudo ./downr1n.sh --downgrade 14.0 [] Command ran: sudo ./downr1n.sh --downgrade 14.0 [21:22:31.836][3] usbmuxd v1.1.1 starting up [21:22:31.836][3] Using libusb 1.0.25 [21:22:31.840][3] Initialization complete [21:22:31.841][3] Connecting to new device on location 0x30029 as ID 1 [21:22:31.841][3] Connected to v2.0 device 1 on location 0x30029 with serial number ramdisk tool Sep 18 2022 20:14:43 [-] lzss is not installed. we can installl it for you, press any key to start installing lzss, or press ctrl + c to cancel [21:22:32.849][2] device_control_input: Got unhandled payload type 5 Cloning into '/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main/binaries/Linux/pylzss'... Note: switching to '8efcda0'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 8efcda0 Merge pull request #8 from quiple/master running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( running bdist_egg running egg_info creating lzss.egg-info writing lzss.egg-info/PKG-INFO writing dependency_links to lzss.egg-info/dependency_links.txt writing top-level names to lzss.egg-info/top_level.txt writing manifest file 'lzss.egg-info/SOURCES.txt' reading manifest file 'lzss.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'COPYING' adding license file 'COPYING.LESSER' writing manifest file 'lzss.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext building 'lzss' extension creating build creating build/temp.linux-x86_64-3.10 x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./include -I/usr/include/python3.10 -c pylzss.c -o build/temp.linux-x86_64-3.10/pylzss.o pylzss.c:20:23: warning: ‘LZSS_P’ defined but not used [-Wunused-const-variable=] 20 | static const unsigned LZSS_P = 1; | ^~ creating build/lib.linux-x86_64-3.10 x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/pylzss.o -o build/lib.linux-x86_64-3.10/lzss.cpython-310-x86_64-linux-gnu.so creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg copying build/lib.linux-x86_64-3.10/lzss.cpython-310-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg creating stub loader for lzss.cpython-310-x86_64-linux-gnu.so byte-compiling build/bdist.linux-x86_64/egg/lzss.py to lzss.cpython-310.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt zip_safe flag not set; analyzing archive contents... pycache.lzss.cpython-310: module references file creating dist creating 'dist/lzss-0.3-py3.10-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing lzss-0.3-py3.10-linux-x86_64.egg creating /usr/local/lib/python3.10/dist-packages/lzss-0.3-py3.10-linux-x86_64.egg Extracting lzss-0.3-py3.10-linux-x86_64.egg to /usr/local/lib/python3.10/dist-packages Adding lzss 0.3 to easy-install.pth file

Installed /usr/local/lib/python3.10/dist-packages/lzss-0.3-py3.10-linux-x86_64.egg Processing dependencies for lzss==0.3 Finished processing dependencies for lzss==0.3 downr1n | Version 3.0 Created by edwin, thanks palera1, and all people creator of path file boot

[] Waiting for devices [] Detected ramdisk mode device [] Rebooting device in SSH Ramdisk [21:22:46.994][3] Removed device 1 on location 0x30029 [] Waiting for device in recovery mode [] Waiting for devices [] Detected recovery mode device [] Getting device info... Detected cpid, your cpid is 0x8003 Detected model, your model is n66map Detected deviceid, your deviceid is iPhone8,2 [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (1) [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (3) [] Device entered DFU! [] Device entered DFU! [-] we found ipsw/iPhone_5.5_14.0_18A373_Restore.ipsw, do you want to use it ? please write, yes or no yes ipsw/iPhone_5.5_14.0_18A373_Restore.ipsw [] Checking if the ipsw is for your device [] Checking ipsw version [] Extracting ipsw, hang on please ... [] Got extract the IPSW successfully [] Creating ramdisk [-] Ramdisk is already created so SKIPPING ... [] Booting ramdisk [/] We couldn't get the ipsw curl. we will proceed with -k option with curl usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Now you can boot untrusted images. usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [] Waiting for the ramdisk to finish booting libusb: warning [op_get_configuration] device unconfigured libusb: error [op_get_active_config_descriptor] device unconfigured [21:24:18.665][3] Could not get old configuration descriptor for device 3-49: LIBUSB_ERROR_NOT_FOUND [21:24:18.670][3] Connecting to new device on location 0x30031 as ID 2 [21:24:18.719][3] Connected to v2.0 device 2 on location 0x30031 with serial number ramdisk tool Sep 18 2022 20:14:43 [21:24:18.719][2] device_control_input: Got unhandled payload type 5 [21:24:19.363][2] device_control_input: Got unhandled payload type 5 Error connecting to device: No error information [] Mounting filesystems ... [] Dumpped SHSH [] Checking device version the version that the device is currently in is 15.8 [] extracting kernel ... [] extracted Reboot into recovery mode ... [21:25:09.012][3] Removed device 2 on location 0x30031 [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (3) [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (3) [] Device entered DFU! [] Device entered DFU! [ ]Patching some boot files... [] Finished moving the boot files to work [] Decrypthing ibss and iboot usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Now you can boot untrusted images. [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [] Patching the kernel [] Patching the kernel to restore using futurerestore [] Patching devicetree [] Patching the restored_external and asr, and saving them into the ramdisk ... 'work/devicetree.img4' -> 'boot/iPhone8,2/devicetree.img4' 'work/iBEC.img4' -> 'boot/iPhone8,2/iBEC.img4' 'work/iBSS.img4' -> 'boot/iPhone8,2/iBSS.img4' 'work/kernelcache.img4' -> 'boot/iPhone8,2/kernelcache.img4' 'work/trustcache.img4' -> 'boot/iPhone8,2/trustcache.img4' [] Sucess Patching the boot files [] Checking if the llb was already replaced [] Patching the llb in the ipsw to avoid false dfu mode [=] Hi, please i need that you write the ios version that this device is on or the version of the ios that it was on (if this device is already downgraded), most of the time is the lastest version of ios. write 0 if you want to skip this (it is not recommended to skip this as this can avoid false dfu mode) Version detected!. we are gonna use 15.8 [] LLB downloaded correctly [] putting this LLB into the ipsw zip warning: Local Version Needed To Extract does not match CD: Firmware/ zip warning: Local Version Needed To Extract does not match CD: Firmware/AOP/ zip warning: Local Version Needed To Extract does not match CD: Firmware/all_flash/ updating: Firmware/all_flash/LLB.n66m.RELEASE.im4p (deflated 0%) zip warning: Local Version Needed To Extract does not match CD: Firmware/dfu/ zip warning: Local Version Needed To Extract does not match CD: Firmware/usr/ zip warning: Local Version Needed To Extract does not match CD: Firmware/usr/local/ adding: Firmware/all_flash//LLB.n66m.RELEASE.im4p (deflated 0%) ERROR: ./downr1n.sh: line 1298: cd: too many arguments

edwin170 commented 6 months ago

couldn't you just open again the other pull request instead of creating another one ?

edwin170 commented 6 months ago

I just fixed the old error: TypeError: function missing required argument 'initial_buffer_values' (pos 2) And now, I got the new error: [*] Command ran: sudo ./downr1n.sh --downgrade 14.0 [21:13:08.413][3] usbmuxd v1.1.1 starting up [21:13:08.414][3] Using libusb 1.0.25 [21:13:08.418][3] Initialization complete [21:13:08.419][3] Connecting to new device on location 0x30021 as ID 1 [21:13:08.419][3] Connected to v2.0 device 1 on location 0x30021 with serial number ramdisk tool Sep 18 2022 20:14:43 downr1n | Version 3.0 Created by edwin, thanks palera1, and all people creator of path file boot

[] Waiting for devices [] Detected ramdisk mode device [_] Rebooting device in SSH Ramdisk [21:13:09.426][2] device_controlinput: Got unhandled payload type 5 [21:13:14.616][3] Removed device 1 on location 0x30021 [] Waiting for device in recovery mode [] Waiting for devices [] Detected recovery mode device [] Getting device info... Detected cpid, your cpid is 0x8003 Detected model, your model is n66map Detected deviceid, your deviceid is iPhone8,2 [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (2) [] Device entered DFU! [-] we found ipsw/iPhone_5.5_14.0_18A373_Restore.ipsw, do you want to use it ? please write, yes or no yes ipsw/iPhone_5.5_14.0_18A373Restore.ipsw [] Checking if the ipsw is for your device [] Checking ipsw version [] Extracting ipsw, hang on please ... [] Got extract the IPSW successfully [] Creating ramdisk [-] Ramdisk is already created so SKIPPING ... [_] Booting ramdisk [/] We couldn't get the ipsw curl. we will proceed with -k option with curl usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Now you can boot untrusted images. usbtimeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [] Waiting for the ramdisk to finish booting libusb: warning [op_get_configuration] device unconfigured libusb: error [op_get_active_config_descriptor] device unconfigured [21:14:23.888][3] Could not get old configuration descriptor for device 3-41: LIBUSB_ERROR_NOT_FOUND [21:14:23.902][3] Connecting to new device on location 0x30029 as ID 2 [21:14:23.942][3] Connected to v2.0 device 2 on location 0x30029 with serial number ramdisk tool Sep 18 2022 20:14:43 [21:14:23.942][2] device_control_input: Got unhandled payload type 5 [21:14:24.850][2] device_controlinput: Got unhandled payload type 5 Error connecting to device: No error information [] Mounting filesystems ... [] Dumpped SHSH [] Checking device version the version that the device is currently in is 15.8 [_] extracting kernel ... TypeError: function missing required argument 'initial_buffer_values' (pos 2) ^C yenminh@yenminh-FMVD04001:/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main$ sudo python3.9 -m pip uninstall pylzss lzss sudo: python3.9: command not found yenminh@yenminh-FMVD04001:/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main$ sudo python3 -m pip uninstall pylzss lzss WARNING: Skipping pylzss as it is not installed. Found existing installation: lzss 0.3 Uninstalling lzss-0.3: Would remove: /usr/local/lib/python3.10/dist-packages/lzss-0.3-py3.10-linux-x8664.egg Proceed (Y/n)? y Successfully uninstalled lzss-0.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv yenminh@yenminh-FMVD04001:/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main$ sudo ./downr1n.sh --downgrade 14.0 [] Command ran: sudo ./downr1n.sh --downgrade 14.0 [21:22:31.836][3] usbmuxd v1.1.1 starting up [21:22:31.836][3] Using libusb 1.0.25 [21:22:31.840][3] Initialization complete [21:22:31.841][3] Connecting to new device on location 0x30029 as ID 1 [21:22:31.841][3] Connected to v2.0 device 1 on location 0x30029 with serial number ramdisk tool Sep 18 2022 20:14:43 [-] lzss is not installed. we can installl it for you, press any key to start installing lzss, or press ctrl + c to cancel [21:22:32.849][2] device_control_input: Got unhandled payload type 5 Cloning into '/media/yenminh/MOBILE/DowngradeiOS Tethered with Linux/downr1n-main/downr1n-main/binaries/Linux/pylzss'... Note: switching to '8efcda0'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:

git switch -c

Or undo this operation with:

git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 8efcda0 Merge pull request #8 from quiple/master running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release warnings.warn( /usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release warnings.warn( running bdist_egg running egg_info creating lzss.egg-info writing lzss.egg-info/PKG-INFO writing dependency_links to lzss.egg-info/dependency_links.txt writing top-level names to lzss.egg-info/top_level.txt writing manifest file 'lzss.egg-info/SOURCES.txt' reading manifest file 'lzss.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'COPYING' adding license file 'COPYING.LESSER' writing manifest file 'lzss.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_ext building 'lzss' extension creating build creating build/temp.linux-x86_64-3.10 x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./include -I/usr/include/python3.10 -c pylzss.c -o build/temp.linux-x86_64-3.10/pylzss.o pylzss.c:20:23: warning: ‘LZSS_P’ defined but not used [-Wunused-const-variable=] 20 | static const unsigned LZSS_P = 1; | ^~ creating build/lib.linux-x86_64-3.10 x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 -Wl,-Bsymbolic-functions -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-x86_64-3.10/pylzss.o -o build/lib.linux-x86_64-3.10/lzss.cpython-310-x86_64-linux-gnu.so creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/egg copying build/lib.linux-x86_64-3.10/lzss.cpython-310-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/egg creating stub loader for lzss.cpython-310-x86_64-linux-gnu.so byte-compiling build/bdist.linux-x86_64/egg/lzss.py to lzss.cpython-310.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying lzss.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt zip_safe flag not set; analyzing archive contents... pycache.lzss.cpython-310: module references file creating dist creating 'dist/lzss-0.3-py3.10-linux-x86_64.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing lzss-0.3-py3.10-linux-x86_64.egg creating /usr/local/lib/python3.10/dist-packages/lzss-0.3-py3.10-linux-x86_64.egg Extracting lzss-0.3-py3.10-linux-x86_64.egg to /usr/local/lib/python3.10/dist-packages Adding lzss 0.3 to easy-install.pth file

Installed /usr/local/lib/python3.10/dist-packages/lzss-0.3-py3.10-linux-x86_64.egg Processing dependencies for lzss==0.3 Finished processing dependencies for lzss==0.3 downr1n | Version 3.0 Created by edwin, thanks palera1, and all people creator of path file boot

[] Waiting for devices [] Detected ramdisk mode device [] Rebooting device in SSH Ramdisk [21:22:46.994][3] Removed device 1 on location 0x30029 [] Waiting for device in recovery mode [] Waiting for devices [] Detected recovery mode device [] Getting device info... Detected cpid, your cpid is 0x8003 Detected model, your model is n66map Detected deviceid, your deviceid is iPhone8,2 [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (1) [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (3) [] Device entered DFU! [_] Device entered DFU! [-] we found ipsw/iPhone_5.5_14.0_18A373_Restore.ipsw, do you want to use it ? please write, yes or no yes ipsw/iPhone_5.5_14.0_18A373Restore.ipsw [] Checking if the ipsw is for your device [] Checking ipsw version [] Extracting ipsw, hang on please ... [] Got extract the IPSW successfully [] Creating ramdisk [-] Ramdisk is already created so SKIPPING ... [_] Booting ramdisk [/] We couldn't get the ipsw curl. we will proceed with -k option with curl usb_timeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Now you can boot untrusted images. usbtimeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [==================================================] 100.0% [] Waiting for the ramdisk to finish booting libusb: warning [op_get_configuration] device unconfigured libusb: error [op_get_active_config_descriptor] device unconfigured [21:24:18.665][3] Could not get old configuration descriptor for device 3-49: LIBUSB_ERROR_NOT_FOUND [21:24:18.670][3] Connecting to new device on location 0x30031 as ID 2 [21:24:18.719][3] Connected to v2.0 device 2 on location 0x30031 with serial number ramdisk tool Sep 18 2022 20:14:43 [21:24:18.719][2] device_control_input: Got unhandled payload type 5 [21:24:19.363][2] device_controlinput: Got unhandled payload type 5 Error connecting to device: No error information [] Mounting filesystems ... [] Dumpped SHSH [] Checking device version the version that the device is currently in is 15.8 [] extracting kernel ... [] extracted Reboot into recovery mode ... [21:25:09.012][3] Removed device 2 on location 0x30031 [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (3) [] To get into DFU mode, you will be guided through 2 steps: [] Press any key when ready for DFU mode Get ready (0) Release power button, but keep holding home button (9) Release power button, but keep holding home button (3) [] Device entered DFU! [] Device entered DFU! [ ]Patching some boot files... [] Finished moving the boot files to work [_] Decrypthing ibss and iboot usbtimeout: 5 [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: RESET ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: SETUP ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Stage: PATCH ret: true [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 CPID: 0x8003 Found the USB handle. Now you can boot untrusted images. [libusb] Waiting for the USB handle with VID: 0x5AC, PID: 0x1227 Found the USB handle. [] Patching the kernel [] Patching the kernel to restore using futurerestore [] Patching devicetree [_] Patching the restoredexternal and asr, and saving them into the ramdisk ... 'work/devicetree.img4' -> 'boot/iPhone8,2/devicetree.img4' 'work/iBEC.img4' -> 'boot/iPhone8,2/iBEC.img4' 'work/iBSS.img4' -> 'boot/iPhone8,2/iBSS.img4' 'work/kernelcache.img4' -> 'boot/iPhone8,2/kernelcache.img4' 'work/trustcache.img4' -> 'boot/iPhone8,2/trustcache.img4' [] Sucess Patching the boot files [] Checking if the llb was already replaced [] Patching the llb in the ipsw to avoid false dfu mode [=] Hi, please i need that you write the ios version that this device is on or the version of the ios that it was on (if this device is already downgraded), most of the time is the lastest version of ios. write 0 if you want to skip this (it is not recommended to skip this as this can avoid false dfu mode) Version detected!. we are gonna use 15.8 [_] LLB downloaded correctly [] putting this LLB into the ipsw zip warning: Local Version Needed To Extract does not match CD: Firmware/ zip warning: Local Version Needed To Extract does not match CD: Firmware/AOP/ zip warning: Local Version Needed To Extract does not match CD: Firmware/all_flash/ updating: Firmware/all_flash/LLB.n66m.RELEASE.im4p (deflated 0%) zip warning: Local Version Needed To Extract does not match CD: Firmware/dfu/ zip warning: Local Version Needed To Extract does not match CD: Firmware/usr/ zip warning: Local Version Needed To Extract does not match CD: Firmware/usr/local/ adding: Firmware/all_flash//LLB.n66m.RELEASE.im4p (deflated 0%) ERROR: ./downr1n.sh: line 1298: cd: too many arguments

touch boot/iPhone8,2/.llbreplaced