itm4n / PrivescCheck

Privilege Escalation Enumeration Script for Windows
BSD 3-Clause "New" or "Revised" License
2.91k stars 422 forks source link

Bug in Find-SccmCacheFileCredentials? #58

Closed nurfed1 closed 4 months ago

nurfed1 commented 4 months ago

Hi,

Is the throw at line 725 intended?

https://github.com/itm4n/PrivescCheck/blob/7d384bf88f12bc60ac9195936dcf6f5c60bd9559/src/helper/CredentialHelpers.ps1#L638-L730

It seems to be crashing the script when Get-SccmCacheFiles return $null.

image

itm4n commented 4 months ago

I pushed a quick fix with commit f4eb074, could you test again?

nurfed1 commented 4 months ago

Yeah, that seems to work :) Thanks