07-13-2017, 08:54 PM
(07-12-2017, 02:52 AM)devilsadvocate Wrote: Regarding the 2 that were almost correctly calculated, the passphrase with the exception of the last 2 characters were guessed correctly, but the last 2 characters were wrong. A workaround is to come up with a rule that can truncate the last 2 characters and brute force positions 11 and 12. Either that or adjust the code as necessary.
But this is remarkable. Good work.
Cheers.
The following should calculate the 2 which were "almost" correct:
Code:
def pwgen589_alt(x):
x=int(x*465661287.5245797)
hibit=int(math.floor(math.log(x,2)))
if hibit>=52:
x-=2**(hibit-52)
pw=''
for n in range(0,6):
pw=pw_charset[x%37] + pw
x/=37
pw=chr(50+(x%8)) + pw
x/=37
return pw
I haven't seen any actual ATTxxxx passwords. I'm not even sure if they are associated with Arris or Pace hardware. If they are from Arris, the method should be similar.