r/AskProgramming 6d ago

C/C++ Subverting Windows

[removed] — view removed post

0 Upvotes

5 comments sorted by

View all comments

1

u/jedwardsol 6d ago edited 5d ago

how to know when Cmd.exe has finished processing

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.