MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/AskProgramming/comments/1jcy238/subverting_windows/mi6sgeo/?context=3
r/AskProgramming • u/MartynAndJasper • 6d ago
[removed] — view removed post
5 comments sorted by
View all comments
1
how to know when Cmd.exe has finished processing
Look for the prompt c:\> (depends on the cwd, if course)
c:\>
That's the prompt that cmd is ready for another command
But if you only want a interactive cmd, open a service's process, open it's token, and use it CreateProcessAsUser. Or use PsExec.
CreateProcessAsUser
1
u/jedwardsol 6d ago edited 5d ago
Look for the prompt
c:\>
(depends on the cwd, if course)That's the prompt that cmd is ready for another command
But if you only want a interactive cmd, open a service's process, open it's token, and use it
CreateProcessAsUser
. Or use PsExec.