peass-ng / PEASS-ng

PEASS - Privilege Escalation Awesome Scripts SUITE (with colors)
https://book.hacktricks.xyz
Other
15.73k stars 3.05k forks source link

%APPDATA% depricated use %LOCALAPPDATA% instead #257

Closed Kennikvik closed 2 years ago

Kennikvik commented 2 years ago

https://github.com/carlospolop/PEASS-ng/blob/8c67152e1761fb9b403918a7fa174126f36f61db/winPEAS/winPEASbat/winPEAS.bat#L240

RemodeDeskCredMgr is not working because it uses a wrong variable no longer present in win10

Not working

IF exist "%APPDATA%\Local\Microsoft\Remote Desktop Connection Manager\RDCMan.settings" ECHO.Found: RDCMan.settings in %AppLocal%\Local\Microsoft\Remote Desktop Connection Manager\RDCMan.settings, check for credentials in .rdg files

Working

IF exist "%LOCALAPPDATA%\Microsoft\Remote Desktop Connection Manager\RDCMan.settings" ECHO.Found: RDCMan.settings in %AppLocal%\Local\Microsoft\Remote Desktop Connection Manager\RDCMan.settings, check for credentials in .rdg files
carlospolop commented 2 years ago

Thanks! This should be fixed!