A condition based on an english hardcoded string cause CMLoot to fail on non english systems
Z4kSec opened this issue · comments
Hi @1njected,
First, thanks a lot for this awesome tool.
While using it, I had a specific usecase where the SCCMContentLib
share was configured as hidden (SCCMContentLib$
).
This share can still be accessed by my domain user, but it will not be displayed by the net view
commands (line 61).
I didn't create any pull request cause I don't know how you want to manage this case. But it could be nice to implement it natively ! :)
My bad, the /all
net view option displays the hidden share. But I think the issue is due to the -match
conditions (line 65.
Indeed, SCCMContentLib$
doesn't match SCCMContentLib
. Maybe replacing this line by if ($share -like 'SCCMContentLib*') {
could do the job ;)
Great find, thx! I'll try to push a fix in a few days. I'm also replacing Get-ChildItem as it is very slow. :)