Skip to content

Commit 35607c3

Browse files
author
ydhcui
committed
update 0.9
1 parent 7a7790a commit 35607c3

File tree

14 files changed

+8663
-7060
lines changed

14 files changed

+8663
-7060
lines changed

README.md

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,22 @@
3030
[NPS] 2022/09/14 15:57:21 NPC文件路由 : /images/:fid/logo.png
3131
```
3232
则NPS访问地址为 http://192.168.93.217:3200/manjusaka
33-
账号密码见初始日志,每个人生成的密码及默认路由都不一样 如需修改 请自行编辑nps.db文件
33+
账号密码见初始日志,每个人生成的密码及默认路由都不一样 如需修改 请自行编辑nps.db文件
3434

3535

3636
1、创建项目,默认有一个公共项目,通过项目【状态】开关可以控制项目是否启用状态。选择当前项目后 可在回传结果里面查看当前项目回传的信息。
3737

3838
新建项目 配置需要填写以下项:
3939

40-
项目名称: 随便写 如:hvv2022
41-
4240
项目名称: 随便写 如 hvv2022
4341

4442
回调地址: 外网IP和端口 http://12.34.56.78:8080
4543

4644
上线域名: cdn域名 如 http://imagecdn2.alicdn.com 如果没有上cdn则填写和回调地址一样
4745

48-
Host头 : cdn上线时所需要的host请求头
49-
50-
代理地址: NPC上线时如果需要走代理,在这里配置。比如我测试用的clash,代理配置为http://192.168.93.1:7890
46+
Host头 : cdn上线时所需要的host请求头 如 update.baiduimage.com 默认为上线域名
5147

52-
Host : cdn上线时所需要的host请求头 如 update.baiduimage.com 默认为上线域名
48+
代理地址: NPC上线时如果需要走代理,在这里配置。比如我测试用的clash,代理配置为http://192.168.93.1:7890 详见:https://docs.rs/reqwest/0.11.16/reqwest/struct.Proxy.html
5349

5450
其它都会默认生成,点击确定更新之后需要刷新列表重新启用项目状态。
5551

@@ -226,6 +222,21 @@ message PlugResult {
226222

227223
5、 上线提醒功能,需要在conf里面配置一下webhook。
228224

225+
```
226+
[webhook]
227+
method = "POST"
228+
url = "https://wxpusher.zjiecode.com/api/send/message"
229+
headers = "Content-Type:application/json" #多个header以\n分割
230+
body = """{
231+
"appToken":"AT_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
232+
"content":"{Projname} {Projroute} \\n{Username} {Hostname} \\n{Intranet} {Internet} \\n{Pid} {Process}",
233+
"summary":"您有新的肉鸡上线啦!{Username} {Hostname}",
234+
"contentType":3,
235+
"uids":["UID_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]}"""
236+
237+
238+
```
239+
229240
demo里用的是wxpusher的方案,可以自己改 但是目前只支持POST模式。
230241

231242
body里面的模板支持以下变量(注意:变量为未经过滤的原始字符,可能存在xss风险。)
@@ -248,6 +259,18 @@ body里面的模板支持以下变量(注意:变量为未经过滤的原始字
248259

249260
## 更新
250261

262+
### v0.9
263+
1、插件改为内存加载,无文件落地(仅windows,unix暂未实现)。
264+
265+
2、去除了npc获取公网地址项。。。(容易报毒)。
266+
267+
3、支持socks5代理上线,修改加密算法为aes。 修改npu推送间隔为60s。
268+
269+
4、修复npc列表界面位移,支持备注功能。
270+
271+
5、去除了没啥卵用的功能,修复其它bug。
272+
273+
251274
### v0.8
252275
1、获取真实公网地址、并展示IP归属 , 密码加密,上线提醒功能
253276

@@ -295,7 +318,7 @@ body里面的模板支持以下变量(注意:变量为未经过滤的原始字
295318

296319
4、增加动态插件功能,可拓展更多功能
297320

298-
5、去除特征、修复bug
321+
5、去除特征、修复bug
299322

300323

301324
### v0.4

conf.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[nps]
22

3-
#nps监听端口
3+
#nps监听端口 管理端口
44
npsport = ":3200"
55

6-
#npc监听端口
6+
#npc监听端口 上线端口
77
npcport = ":80"
88

99
#NPU后台地址
@@ -25,7 +25,7 @@ qqmapkey = "EIMBZ-RBNH4-NZQUG-X7RKQ-3SPPH-YSFCX"
2525
#文件服务地址 默认开启本地服务
2626
server = ""
2727

28-
#文件操作路由,遵守gin路由规则 后端会读取target目标、和fid的值
28+
#文件操作路由,遵守gin路由规则 后端会读取fid的值
2929
route = "/images/:fid/logo.png"
3030

3131
#fid有效时间(秒)
@@ -47,7 +47,7 @@ headers = "Content-Type:application/json" #多个header以\n分割
4747
body = """{
4848
"appToken":"AT_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
4949
"content":"{Projname} {Projroute} \\n{Username} {Hostname} \\n{Intranet} {Internet} \\n{Pid} {Process}",
50-
"summary":"您有新的肉鸡上线啦!{Username} {Hostname}",
50+
"summary":"您有新的主机上线啦!{Username} {Hostname}",
5151
"contentType":3,
5252
"uids":["UID_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"]}"""
5353

manjusaka

-528 Bytes
Binary file not shown.

plugins/libnpc.a

Lines changed: 8628 additions & 7048 deletions
Large diffs are not rendered by default.

plugins/libnpc.so

732 KB
Binary file not shown.

plugins/npc

732 KB
Binary file not shown.

plugins/npc.dll

676 KB
Binary file not shown.

plugins/npc.exe

676 KB
Binary file not shown.

plugins/plug_getpass_nps.dll

-1.02 MB
Binary file not shown.

plugins/x86/npc.dll

522 KB
Binary file not shown.

plugins/x86/npc.exe

525 KB
Binary file not shown.

plugins_1/plug_getpass_nps.dll

919 KB
Binary file not shown.

plugins_1/plug_katz_nps.exe

1010 KB
Binary file not shown.

plugins_1/plug_qvte_nps.exe

188 KB
Binary file not shown.

0 commit comments

Comments
 (0)