programminghoch10 / huawei-honor-bootloader-bruteforce

A simple script to bruteforce Huawei/Honor bootloader codes
Apache License 2.0
59 stars 2 forks source link

Example logs #10

Open JtheSaw opened 3 years ago

JtheSaw commented 3 years ago

Hi could you please paste some of your output? I'm getting lots of errors and am wondering if this is just because the code is wrong or if there is something wrong with my setup... This is some example log output:

Bruteforce is running...
Currently testing code 1014245923866480
Progress: 10.14%
                                                   FAILED (remote: 'password wrong')
fastboot: error: Command failed

Rebooting to prevent bootloader from rebooting...
Rebooting into bootloader                          OKAY [  0.032s]
Finished. Total time: 0.033s
Bruteforce is running...
Currently testing code 1014276105908570
Progress: 10.14%
                                                   FAILED (Write to device failed (Too many links))
fastboot: error: Command failed

USB communications error.  Retrying.
Bruteforce is running...
Currently testing code 1014276105908570
Progress: 10.14%
< waiting for any device >
                                                   FAILED (remote: 'password wrong')
fastboot: error: Command failed

Bruteforce is running...
Currently testing code 1014306287950660
Progress: 10.14%
                                                   FAILED (remote: 'password wrong')
fastboot: error: Command failed

Bruteforce is running...
Currently testing code 1014336469992750
Progress: 10.14%
                                                   FAILED (remote: 'password wrong')
fastboot: error: Command failed

Rebooting to prevent bootloader from rebooting...
Rebooting into bootloader                          OKAY [  0.022s]
Finished. Total time: 0.024s
Bruteforce is running...
Currently testing code 1014366652034840
Progress: 10.14%
                                                   FAILED (Write to device failed (Too many links))
fastboot: error: Command failed

Is this looking like a normal log? I also added FIX (https://github.com/SkyEmie/huawei-honor-unlock-bootloader/issues/84) of the main project

Thanks for your help!

programminghoch10 commented 3 years ago

Well it all looks fine, the too many links error is a weird one, I've encountered one before but don't know what to do about it. password wrong is expected when trying to brute force the password... So yeah mostly normal, just try it and if you have more luck than a person winning every lotto game in their life, you will get the code :)

ps what fix are you talking about? #9 does not contain any fix

JtheSaw commented 3 years ago

Yeah this too many links error appears after every cycle of printing...

I fixed the link above. I meant the issue (https://github.com/SkyEmie/huawei-honor-unlock-bootloader/issues/84) from the main project

programminghoch10 commented 3 years ago

Well I never tested nor approved that fix. I don't know its effects on the result. This fix seems to just skip the tested number if an error occured. Point is, that error should not occur in the first place. Maybe try different ports and cables?

Actually that error occurs during/right after phone reboot, prob the bootloader ain't ready for commands yet. idk Also check if your phone requires the reboot.

funtastian commented 3 years ago

i had the same output, and added a little sleep time (in line 70) because it really seemed like the bootloader wasn't ready yet.

if (n%autorebootcount==0 and autoreboot): print("Rebooting to prevent bootloader from rebooting...") os.system('fastboot reboot bootloader') **time.sleep(1)**

no unexpected errors anymore.