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

Appending output #2

Open
Purp1eW0lf opened this issue Jun 22, 2021 · 0 comments
Open

Appending output #2

Purp1eW0lf opened this issue Jun 22, 2021 · 0 comments

Comments

@Purp1eW0lf
Copy link

Would you be able to advise about appending the output of results

This one liner doesn't actually output anything into the file

Invoke-Leghorn -Domain whatever.local | Out-File -FilePath .\cert_abuse_audit.txt

As a workaround right now, I have been using the following with start-transcript in order to save results.

#Begin transcript mode
$ErrorActionPreference="SilentlyContinue"
Stop-Transcript | out-null
$ErrorActionPreference = "Continue"
Start-Transcript -path .\client_certificate_abuse.txt -append

#start script
Invoke-Leghorn -Domain whatever.local

#end script
Stop-Transcript

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