Over the last few days I've been designing and implementing an algorithm to brute force windows passwords.
That statement feels like it needs qualification. All I can give is that I could download a dozen of these with much more ease if my interest were to use them maliciously. I'm looking to understand how the algorithms work, and how they're implemented in the real world.
If you're still reading, perhaps you haven't written me off as a script kiddie. I'm flattered. My problem is not with the algorithm or the logon itself (that all works) but when many CreateProcessWithLogonW()'s are executed in the same program inside a loop, an SVCHOST.EXE is launched and continues to take up more and more space (as does my executable).
So I'm wondering if there's a way to kill the allocated memory during the loop so my program doesn't bloat itself to death.
Thanks for your time.