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

mraptor: should ignore directories when using wildcards #829

Open
catafest opened this issue Oct 13, 2023 · 1 comment
Open

mraptor: should ignore directories when using wildcards #829

catafest opened this issue Oct 13, 2023 · 1 comment
Assignees
Milestone

Comments

@catafest
Copy link

I run it with administrator rights.
I got this:

C:\WINDOWS\system32>mraptor "C:\*"
MacroRaptor 0.56.2 - http://decalage.info/python/oletools
This is work in progress, please report issues at https://github.com/decalage2/oletools/issues
----------+-----+----+--------------------------------------------------------
Result    |Flags|Type|File
----------+-----+----+--------------------------------------------------------
ERROR     |     |??? |C:\$RECYCLE.BIN
          |     |    |[Errno 13] Permission denied: 'C:\\$RECYCLE.BIN'
ERROR     |     |??? |C:\android
          |     |    |[Errno 13] Permission denied: 'C:\\android'
ERROR     |     |??? |C:\Arc
          |     |    |[Errno 13] Permission denied: 'C:\\Arc'
Macro OK  |---  |TXT:|C:\av.mof
ERROR     |     |??? |C:\BACKUP
          |     |    |[Errno 13] Permission denied: 'C:\\BACKUP'
ERROR     |     |??? |C:\blender-4.1.0-alpha+main.f54205cfdd11-windows.amd64-
          |     |    |release
          |     |    |[Errno 13] Permission denied: 'C:\\blender-4.1.0-
          |     |    |alpha+main.f54205cfdd11-windows.amd64-release'
ERROR     |     |??? |C:\BlenderCache
          |     |    |[Errno 13] Permission denied: 'C:\\BlenderCache'
@decalage2 decalage2 self-assigned this Oct 16, 2023
@decalage2 decalage2 added this to the Next Release milestone Oct 16, 2023
@decalage2
Copy link
Owner

decalage2 commented Oct 16, 2023

It's normal that some system files like $recycle.bin are not accessible to administrators by default, access is prevented by access list.
Moreover here you are asking mraptor to scan C:*, which includes directories and triggers read errors. I agree that it would look better if mraptor ignored anything that is not a file. That can be fixed.
(note that it is not related to the fact that it is running as admin or not, so I will change the issue title)

@decalage2 decalage2 changed the title cannot run with administrator rights : Errno 13 Permission denied mraptor: should ignore directories when using wildcards Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants