# 第六十三课：高级持续渗透-第七季demo的成长

本季是作《PHP安全新闻早八点-高级持续渗透-第六季关于后门》的补充。

* <https://micropoor.blogspot.com/2018/12/php.html> &#x20;
* **原本以为第六季的demo便结束了notepad++** &#x20;
* **但是demo系列的懿旨并没有按照作者的想法来表述。顾引入第七季。**

在第一季关于后门中，文章提到重新编译notepad++，来引入有目标源码后门构造。

在第六季关于后门中，文章**假设在不得知notepad++的源码**，来引入无目标源码沟门构造。

而第七季关于后门中，让这个demo更贴合于实战。此季让这个demo成长起来。它的 成长痕迹分别为第一季，第六季，第七季。

**该系列仅做后门思路。**

**懿旨：安全是一个链安全，攻击引入链攻击，后门引入链后门。让渗透变得更加有趣。**

**Demo 环境：**

* Windows 2003 x64 &#x20;
* Windows 7 x64 &#x20;
* notepad++ 7.6.1，notepad++7.5.9  &#x20;
* vs 2017

**靶机以notepad++ 7.5.9为例：**

默认安装notepad++流程图，如下：一路下一步。

![](/files/-LZP7bC0Lm_p_Pyx5B5d)

![](/files/-LZP7bC3vpbWuyzMBuIN)

![](/files/-LZP7bC5F-fx0lvGHmus)

**目标机背景：** windows 2003，x64，notepad++ 7.6.1，notepad++7.5.9，iis，aspx

![](/files/-LZP7bC7PquqnPba7gM1)

**shell权限如下：**

![](/files/-LZP7bC9gF4Ci3_O3PzV)

**notepad++7.5.9**

* 安装路径：E:\Notepad++ &#x20;
* 插件路径：E:\Notepad++\plugins &#x20;

![](/files/-LZP7bCCOXzHRMb6Axyj)

**检查默认安装情况如下：**\
![](/files/-LZP7bCFi8cFCZIdxUUS)

注：为了让本季的demo可观性，顾不打算隐藏自身。\
![](/files/-LZP7bCHcEdWHDT-dqS6)

端口如下：\
![](/files/-LZP7bCKoOJG8K_Oc05J)

shell下写入：\
**注：** **notepad++ v7.6以下版本插件路径为：**\
`X:\Notepad++\plugins\`

**notepad++ v7.6以上版本插件路径为：**\
`X:\Documents and Settings\All Users\Application Data\Notepad++\plugins`

![](/files/-LZP7bCNfSqw9NUR0y5C)

目标机管理员再次打开notepad++： **注：demo中不隐藏自身**\
![](/files/-LZP7bCPv9OIzIs9NPLU)

端口变化如下：\
![](/files/-LZP7bCRlqtYAMUh7Owc)

msf 连接目标机：\
![](/files/-LZP7bCTHZMIA176MRRv)

**后者的话：**

如果此demo，增加隐身自身，并demo功能为：增加隐藏帐号呢？或者往指定邮箱发目标机帐号密码明文呢？如果当第六季依然无法把该demo加入到实战中，那么请回顾。这样实战变得更为有趣。**安全是一个链安全，攻击引入链攻击，后门引入链后门。让渗透变得更加有趣。**

> Micropoor


---

# 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://micro8.gitbook.io/micro8/contents-1/61-70/63-gao-ji-chi-xu-shen-tou-di-qi-ji-demo-de-cheng-chang.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.
