Skip to content

Commit 2fa93ec

Browse files
committed
trying to fix credman module error
Former-commit-id: d064bcc [formerly d064bcc [formerly d064bcc [formerly 70f9687]]] Former-commit-id: 103bf294f7624de29a378410434ee5acaa86ee1b Former-commit-id: a7ef956 Former-commit-id: 6018dac
1 parent 349fe0b commit 2fa93ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Windows/lazagne/softwares/windows/credman.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ def run(self, software_name = None):
3232

3333
print_debug('DEBUG', 'target: %s' % str(c.TargetName))
3434
print_debug('DEBUG', 'username: %s' % str(c.UserName))
35-
print_debug('DEBUG', 'password: %s' % str(c.CredentialBlob[:c.CredentialBlobSize.real:2]))
35+
print_debug('DEBUG', 'password: %s' % str(c.CredentialBlob))
36+
print_debug('DEBUG', 'size of the password: %s' % str(c.CredentialBlobSize.real))
3637
print_debug('DEBUG', 'everything ok')
3738
pwdFound.append(
3839
{
3940
'URL' : c.TargetName,
4041
'Login' : c.UserName,
41-
'Password' : c.CredentialBlob[:c.CredentialBlobSize.real:2]
42+
'Password' : c.CredentialBlob[:c.CredentialBlobSize.real].replace('\x00', '')
4243
}
4344
)
4445
print_debug('DEBUG', 'trying to free the handle')

0 commit comments

Comments
 (0)