diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-10-27 23:06:16 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-10-27 23:06:16 +0200 |
commit | 37f95f67fec2b2460903ffa5255b1beeba1731fd (patch) | |
tree | 6a932718139104406ab576ba89065c53f8dd20e7 /utils/nwztools/upgtools/misc.c | |
parent | 794104dd17a28a2db09ca1ed44ba7dfb18a1f0ca (diff) | |
download | rockbox-37f95f67fec2b2460903ffa5255b1beeba1731fd.tar.gz rockbox-37f95f67fec2b2460903ffa5255b1beeba1731fd.zip |
nwztools/upgtools: rewrite keysig brute force search
The new search has two new features:
- it takes advantage of the fact that DES keys are only 56-bit long (and not 64)
- it is now multithreaded
As a proof of concept, I ran it on the A10 series firmware upgrade and was able
to find the key in a few seconds using 4 threads. The search is still limited
to ascii hex passwords (seems to work on all devices I have tried thus far).
Change-Id: Ied080286d2bbdc493a6ceaecaaadba802b429666
Diffstat (limited to 'utils/nwztools/upgtools/misc.c')
-rw-r--r-- | utils/nwztools/upgtools/misc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/utils/nwztools/upgtools/misc.c b/utils/nwztools/upgtools/misc.c index 00832cd585..108235e7fd 100644 --- a/utils/nwztools/upgtools/misc.c +++ b/utils/nwztools/upgtools/misc.c | |||
@@ -31,7 +31,6 @@ char RED[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '1', 0x6d, '\0' }; | |||
31 | char GREEN[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '2', 0x6d, '\0' }; | 31 | char GREEN[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '2', 0x6d, '\0' }; |
32 | char YELLOW[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '3', 0x6d, '\0' }; | 32 | char YELLOW[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '3', 0x6d, '\0' }; |
33 | char BLUE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '4', 0x6d, '\0' }; | 33 | char BLUE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '4', 0x6d, '\0' }; |
34 | char WHITE[] = { 0x1b, 0x5b, 0x31, 0x3b, '3', '7', 0x6d, '\0' }; | ||
35 | 34 | ||
36 | static bool g_color_enable = true; | 35 | static bool g_color_enable = true; |
37 | 36 | ||