ipwndfu icon indicating copy to clipboard operation
ipwndfu copied to clipboard

Traceback (most recent call last)

Open jirayutza1 opened this issue 5 years ago • 12 comments

Traceback (most recent call last): File "./ipwndfu", line 49, in serial_number = device.serial_number File "/Users/nuttaphonsuppasri/Desktop/ipwndfu-master/usb/core.py", line 830, in serial_number self._serial_number = util.get_string(self, self.iSerialNumber) File "/Users/nuttaphonsuppasri/Desktop/ipwndfu-master/usb/util.py", line 314, in get_string raise ValueError("The device has no langid") ValueError: The device has no langid

Originally posted by @jirayutza1 in https://github.com/axi0mX/ipwndfu/issues/127#issuecomment-561821754

jirayutza1 avatar Dec 04 '19 20:12 jirayutza1

Insert device._langids = (1033,) between for device in usb.core.find(... and if match is not None... at line https://github.com/axi0mX/ipwndfu/blob/master/dfu.py#L16 see https://github.com/pyusb/pyusb/issues/139 PS. No pull request as they don't get merged. Patch can be applied locally.

imifos avatar Feb 15 '20 10:02 imifos

@imifos, tried that and am getting the following error after entering the command sudo ./ipwndfu -p

Traceback (most recent call last):
  File "./ipwndfu", line 49, in <module>
    device = dfu.acquire_device()
  File "/Users/lachlanetherton/Desktop/AppleTech752/Exploit/dfu.py", line 16, in acquire_device
    device._langids = (1033,)
UnboundLocalError: local variable 'device' referenced before assignment

Here is my code: Screen Shot 2020-02-19 at 8 58 40 pm

ElectronicallyE avatar Feb 19 '20 10:02 ElectronicallyE

Previously was getting the error:

*** checkm8 exploit by axi0mX ***
*** modified version by Linus Henze and synackuk ***
Found: CPID:8950 CPRV:20 CPFM:03 SCEP:10 BDID:02 ECID:0000011EEC119D8B IBFL:00 SRTG:[iBoot-1145.3]
Traceback (most recent call last):
  File "./ipwndfu", line 64, in <module>
    checkm8.exploit()
  File "/Users/lachlanetherton/Desktop/AppleTech752/Exploit/checkm8.py", line 503, in exploit
    device.serial_number
  File "/Users/lachlanetherton/Desktop/AppleTech752/Exploit/usb/core.py", line 830, in serial_number
    self._serial_number = util.get_string(self, self.iSerialNumber)
  File "/Users/lachlanetherton/Desktop/AppleTech752/Exploit/usb/util.py", line 314, in get_string
    raise ValueError("The device has no langid")
ValueError: The device has no langid

On macOS 10.15.2 and trying to do this on an iPhone 5 (10.3.4), following this tutorial.

ElectronicallyE avatar Feb 19 '20 10:02 ElectronicallyE

Hi, I'm sorry, I messed the above post up (facepalming myself). I have corrected it. You just need to move the patch down one line.

imifos avatar Feb 19 '20 10:02 imifos

@imifos, thanks. It now gives me this error the first time I try: ERROR: Exploit failed. Device did not enter pwned DFU Mode.

If I try again, the program hangs:

sudo ./ipwndfu -p
Password:
*** checkm8 exploit by axi0mX ***
*** modified version by Linus Henze and synackuk ***
Found: CPID:8950 CPRV:20 CPFM:03 SCEP:10 BDID:02 ECID:0000011EEC119D8B IBFL:00 SRTG:[iBoot-1145.3]

After putting the device in DFU mode again, I can get the first error. Retrying sudo ./ipwndfu -p will either cause the phone to reboot or the program to hang.

ElectronicallyE avatar Feb 19 '20 10:02 ElectronicallyE

@imifos, did you have any further suggestions?

ElectronicallyE avatar Feb 26 '20 23:02 ElectronicallyE

@ElectronicallyE No, sorry. Maybe try with an unmodified version of the tool? Just as side note: if you are using a VM, that will not work.

imifos avatar Feb 27 '20 09:02 imifos

@imifos, I've tried a number of times without modifying the code and faced the langid problem, even by typing sudo and python before the command. I'm in Australia, so I have the iPhone 5 GSM model, which I've heard doesn't have good success.

I'm using macOS, so I shouldn't have an issue. :(

ElectronicallyE avatar Feb 27 '20 09:02 ElectronicallyE

@ElectronicallyE if you have an old Linux laptop laying around, it might be worth trying this... python 2, sudo apt install -y git libusb-1.0, clone the tool and go...

imifos avatar Feb 27 '20 09:02 imifos

@imifos, I try and get my hands on one ;). You think perhaps it's the latest macOS causing the problem?

ElectronicallyE avatar Feb 27 '20 09:02 ElectronicallyE

@ElectronicallyE I had conflicts with libusb versions (homebrew). Give it a try if you want to know :)

imifos avatar Feb 27 '20 10:02 imifos

Traceback (most recent call last): File "./ipwndfu", line 49, in serial_number = device.serial_number File "/Users/nuttaphonsuppasri/Desktop/ipwndfu-master/usb/core.py", line 830, in serial_number self._serial_number = util.get_string(self, self.iSerialNumber) File "/Users/nuttaphonsuppasri/Desktop/ipwndfu-master/usb/util.py", line 314, in get_string raise ValueError("The device has no langid") ValueError: The device has no langid

Originally posted by @jirayutza1 in #127 (comment) how to fix? somvangoa@SOMVANGOAs-iMac ~ % cd /Users/somvangoa/Desktop/AppleTech752/Exploit somvangoa@SOMVANGOAs-iMac Exploit % ./ipwndfu -p Traceback (most recent call last): File "./ipwndfu", line 49, in device = dfu.acquire_device() File "/Users/somvangoa/Desktop/AppleTech752/Exploit/dfu.py", line 16, in acquire_device for device in usb.core.find(find_all=True, idVendor=0x5AC, idProduct=0x1227, backend=backend): File "/Users/somvangoa/Desktop/AppleTech752/Exploit/usb/core.py", line 1263, in find raise NoBackendError('No backend available') usb.core.NoBackendError: No backend available somvangoa@SOMVANGOAs-iMac Exploit %

testpakse avatar Aug 05 '20 07:08 testpakse