| derangedhk417 (5) | |
| I am trying to make a program that helps someone recover a lost password. It works by calling "runas /profile /user:bob" and then entering a password from a wordlist until the program gets the password right. When this command is called the shell prompts for the user to input a password. How do I make the program input the password instead of the user? | |
|
|
|
| modoran (1245) | |
|
Check CreateProcessWithLogonW() or LogonUser() to impersonate another user. http://msdn.microsoft.com/en-us/library/windows/desktop/ms682431%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/windows/desktop/aa378184%28v=vs.85%29.aspx | |
|
|
|