AlessandroZ / BeRoot

Privilege Escalation Project - Windows / Linux / Mac
GNU Lesser General Public License v3.0
2.44k stars 466 forks source link

Missing error handling around Access Denied to SCManager #25

Open mubix opened 4 years ago

mubix commented 4 years ago
|====================================================================|
|                                                                    |
|                    Windows Privilege Escalation                    |
|                                                                    |
|                          ! BANG BANG !                             |
|                                                                    |
|====================================================================|

beRoot.exe : [4332] Failed to execute script beRoot
    + CategoryInfo          : NotSpecified: ([4332] Failed to execute script beRoot:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
Traceback (most recent call last):
  File "beRoot.py", line 95, in <module>
  File "beRoot.py", line 60, in run
  File "beroot\run_checks.py", line 298, in check_all
  File "beroot\run_checks.py", line 26, in __init__
  File "beroot\modules\get_info\from_scmanager_services.py", line 10, in get_services
pywintypes.error: (5, 'OpenSCManager', 'Access is denied.')