Closed byt3bl33d3r closed 7 years ago
Hola @byt3bl33d3r!
I think this commit https://github.com/CoreSecurity/impacket/commit/5819161f6846d3cbd8295d81373f014bd1b0ab84 will help you doing what you need. Set the perSecretCallback
when you create instantiate LSASecrets
and you should be called for every secrets grabbed. The do whatever you want.
Let me know.
Happy holidays for you too!
Yup! that's exactly what I did but the hexdump output is still being printed to stdout.
Oops.. small detail @byt3bl33d3r .. thanks for pointing it out.
Let me know how things work now..
That did it! thanks man! 👍
Hey mate!
The
hexdump()
function here in the LSASecrets Class does not use the Impacket root logger and just prints to stdout. Although this output might be useful in most cases, whoever uses the library might not want this (which unfortunately is my case lol):I'd submit a PR but don't know exactly how you'd want to go about this, there are many ways to skin this cat.
Cheers, and happy holidays!