Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Privilege Escalation Windows > Scheduled Tasks > findstr #4

Open
ThibaudLopez opened this issue Jun 15, 2020 · 0 comments
Open

Privilege Escalation Windows > Scheduled Tasks > findstr #4

ThibaudLopez opened this issue Jun 15, 2020 · 0 comments

Comments

@ThibaudLopez
Copy link

Hi @xapax,

In chapter Privilege Escalation Windows > Scheduled Tasks you say:

I have not been able to figure out how to just output the relevant strings with findstr. So if you know a better way please notify me.

The solution is to rediect stderr to stdout, then findstr will work:

schtasks /query /fo LIST /v 2>&1 | findstr /c:"Task To Run"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant