Rapid7 Vulnerability & Exploit Database

Windows Escalate Service Permissions Local Privilege Escalation

Back to Search

Windows Escalate Service Permissions Local Privilege Escalation

Disclosed
10/15/2012
Created
05/30/2018

Description

This module attempts to exploit existing administrative privileges to obtain a SYSTEM session. If directly creating a service fails, this module will inspect existing services to look for insecure configuration, file or registry permissions that may be hijacked. It will then attempt to restart the replaced service to run the payload. This will result in a new session when this succeeds.

Author(s)

  • scriptjunkie
  • Spencer McIntyre
  • itm4n

Platform

Windows

Architectures

x86, x64

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/local/service_permissions
msf exploit(service_permissions) > show targets
    ...targets...
msf exploit(service_permissions) > set TARGET < target-id >
msf exploit(service_permissions) > show options
    ...show and set options...
msf exploit(service_permissions) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;