sekirkity/BrowserGather

Error: Number of users is different than the number of passwords

drale2k opened this issue · 5 comments

Hi,

i get this error every time i run the script "The number of users is different than the number of passwords! This is most likely due to a regex mismatch".

I ma running Win7 in a VM with only 1 User on the system and latest Google Chrome.
I ran the script in 32bit powershell.

What is the issue here?

Sometimes there is 3 bytes after x0D x0D x0D in second regex. '(?<=\x0D\x0D\x0D[\s\S]{2,3}\x68\x74\x74\x70) instead of '(?<=\x0D\x0D\x0D[\s\S]{2}\x68\x74\x74\x70) should work

I have the same issue - I have a single Chrome password stored ("test@test.test") with password "Password.1" on Facebook, and I get the same error:

Get-ChromeCreds : The number of users is different than the number of passwords! This is most likely due to a regex mis
match.
At line:1 char:1
+ Get-ChromeCreds | format-list *
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-ChromeCreds

Any possibility to fix it?

For anyone else coming to this thread looking for answers, I can confirm @hannajs fix worked just fine. Changing the user regex from {2} to {2,3} fixes the problem.

I've figured out that when you press "Do not store password for this website" (or smth like that) in Chrome, it saves website address w/o password. It causes "The number of users is different than the number of passwords!" error. Just ignore it :)