From 37f95f67fec2b2460903ffa5255b1beeba1731fd Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 27 Oct 2016 23:06:16 +0200 Subject: 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 --- utils/nwztools/upgtools/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/nwztools/upgtools/misc.h') diff --git a/utils/nwztools/upgtools/misc.h b/utils/nwztools/upgtools/misc.h index 4e8294f1ee..96666a2eff 100644 --- a/utils/nwztools/upgtools/misc.h +++ b/utils/nwztools/upgtools/misc.h @@ -34,7 +34,7 @@ typedef char color_t[]; -extern color_t OFF, GREY, RED, GREEN, YELLOW, BLUE, WHITE; +extern color_t OFF, GREY, RED, GREEN, YELLOW, BLUE; void *xmalloc(size_t s); void color(color_t c); void enable_color(bool enable); -- cgit v1.2.3