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

File Rename flags AntiMalware Engine #1

Open
byteben opened this issue May 13, 2022 · 2 comments
Open

File Rename flags AntiMalware Engine #1

byteben opened this issue May 13, 2022 · 2 comments

Comments

@byteben
Copy link

byteben commented May 13, 2022

Awesome script, thank you!

When the script attempts to rename a file with illegal characters, Defender blocks it.

At Line: [System.IO.Path]::GetInvalidFileNameChars()

ForEach-Object : At C:\users\Bond\Downloads\mms.ps1:88 char:78

  • ... [System.IO.Path]::GetInvalidFileNameChars() | ForEach-Object {
  •                                                                     ~
    

This script contains malicious content and has been blocked by your antivirus software.

retsak added a commit that referenced this issue May 13, 2022
Test script for issue #1
@retsak
Copy link
Owner

retsak commented May 13, 2022

Uploaded a new file that replaces the method [System.IO.Path]::GetInvalidFileNameChars() with a static array of characters. Could you give it a try?

@byteben
Copy link
Author

byteben commented May 16, 2022

Thanks man, Defender isn't liking the File Rename at all still :)
image

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

2 participants