forked from I2P_Developers/i2p.i2p
For new installs, change owner rather than giving 'F' permission to Users group For existing installs, change owner and change 'F' permission to 'RX' for Users group Local privilege escalation vulnerability Introduced 2009-06-11, released in 0.7.5 2009-06-29 Reported by Juilo Cesar Fort of Blaze Information Security 2020-04-28
19 lines
676 B
Batchfile
19 lines
676 B
Batchfile
:: Fix the problems caused by previous fixperms.bat
|
|
::
|
|
:: 'echo Y' to get past the 'are you sure' question...
|
|
:: cacls requires it on XP, icacls doesnt appear so, but can't hurt
|
|
:: F : full control
|
|
:: /c : continue on error
|
|
:: /q : quiet
|
|
:: /t : recursive
|
|
::
|
|
:: Note: We should not use the group name "Users" since this group will not
|
|
:: exist on non-English versions of Windows.
|
|
::
|
|
:: S-1-5-32-545 = Users (en). Benutzer (de), etc.
|
|
::
|
|
:: Specifying the SID will work on ALL versions of Windows.
|
|
:: List of well-known SIDs at http://support.microsoft.com/kb/243330/en-us
|
|
::
|
|
echo Y|icacls %1 /grant:r %username%:F *S-1-5-32-545:RX /c /t /q > %1%\fixperms.log
|