Displaying 2 results from an estimated 2 matches for "wxqvjaskn0gvg1posy9icw".
2019 Mar 28
2
Encoding problem with the unicodePwd stored into sam.ldb
...nt to extract users' passwords. A lot of passwords are ok, some are not.
Example with a password returning an error :
# ldbsearch -H /var/lib/samba/private/sam.ldb '(primaryGroupID=513)'
userPrincipalName unicodePwd
....
# record 494
dn: CN=XXX,CN=Users,DC=YYY,DC=ZZZ,DC=fr
unicodePwd:: wXQvJaSkn0gvg1POsY9Icw==
uidNumber: 5110
userPrincipalName: XXX
...
ok. Then, I convert the password from utf-16 to hex :
$ echo 'wXQvJaSkn0gvg1POsY9Icw==' | base64 -d -w 0 | hexdump -e '/1 "%02X"'
C1742F25A4*
9F482F8353CEB18F4873
why there is a * and a new line ? base64 (and hexdump) are silen...
2019 Mar 28
0
Encoding problem with the unicodePwd stored into sam.ldb
...passwords are ok, some
> are not.
>
> Example with a password returning an error :
> # ldbsearch -H /var/lib/samba/private/sam.ldb '(primaryGroupID=513)'
> userPrincipalName unicodePwd
> ....
> # record 494
> dn: CN=XXX,CN=Users,DC=YYY,DC=ZZZ,DC=fr
> unicodePwd:: wXQvJaSkn0gvg1POsY9Icw==
> uidNumber: 5110
> userPrincipalName: XXX
> ...
> ok. Then, I convert the password from utf-16 to hex :
> $ echo 'wXQvJaSkn0gvg1POsY9Icw==' | base64 -d -w 0 | hexdump -e '/1
> "%02X"' C1742F25A4*
> 9F482F8353CEB18F4873
>
> why there is a * an...