Skip to content

Commit 2beedec

Browse files
committed
更新脚本
1 parent 6ec2170 commit 2beedec

10 files changed

Lines changed: 309 additions & 94 deletions

encrypt-miner-proxy/Windows_Client_Run.bat

Lines changed: 0 additions & 47 deletions
This file was deleted.

encrypt-miner-proxy/Windows_Server_Run.bat

Lines changed: 0 additions & 47 deletions
This file was deleted.

encrypt-miner-proxy/Linux_Client_Run.sh renamed to encrypt-miner-proxy/script/Linux_Client_Run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ echo "用户名:ryu"
66
echo "密码:https://github.com/ryu0007/EncryptMinerProxy"
77
echo "请及时修改您的用户名和密码,防止别人登入"
88

9+
cd ..
910
chmod 777 encrypt-miner-proxy_linux_amd64
1011
./encrypt-miner-proxy_linux_amd64 -client

encrypt-miner-proxy/Linux_Server_Run.sh renamed to encrypt-miner-proxy/script/Linux_Server_Run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ echo "用户名:ryu"
66
echo "密码:https://github.com/ryu0007/EncryptMinerProxy"
77
echo "请及时修改您的用户名和密码,防止别人登入"
88

9+
cd ..
910
chmod 777 encrypt-miner-proxy_linux_amd64
1011
./encrypt-miner-proxy_linux_amd64
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
@echo OFF
2+
title encrypt-miner-proxy window client onekey setup
3+
mode con cols=70 lines=12
4+
color fc
5+
echo **********************************************************************
6+
echo 请先下载转发主程序https://github.com/ryu0007/EncryptMinerProxy
7+
echo 本脚本仅支持encrypt-miner-proxy_windows_amd64.exe
8+
9+
echo 本脚本需配合客户端代理主程序运行,请将脚本与主程序放在同一文件夹下
10+
echo 登录地址(本地)-http://127.0.0.1:19999/proxy/client/login
11+
echo 登录地址(外网)-http://{公网IP}:19999/proxy/client/login
12+
echo 用户名-ryu
13+
echo 密码-https://github.com/ryu0007/EncryptMinerProxy
14+
echo **********************************************************************
15+
echo 如果运行失败,请检查是否开启了UAC或者未用管理权限运行
16+
echo =============================================================
17+
echo 上述操作如果未完成,请关闭本脚本。如果已确认上述内容,请按任意键继续
18+
pause
19+
mode con cols=130 lines=20
20+
color 1E
21+
:first
22+
echo 蜜罐加密转发代理----客户端代理快速安装脚本
23+
echo =====================================
24+
echo 按1选择安装并启动蜜罐代理客户端
25+
echo -------------------------------------
26+
echo 按2选择启动蜜罐代理客户端
27+
echo -------------------------------------
28+
echo 按3选择重启蜜罐代理客户端
29+
echo -------------------------------------
30+
echo 按4选择停用蜜罐代理客户端
31+
echo -------------------------------------
32+
echo 按5选择查看蜜罐代理客户端状态
33+
echo -------------------------------------
34+
echo 按6选择卸载蜜罐代理客户端
35+
echo -------------------------------------
36+
echo 按q选择退出安装系统
37+
echo =====================================
38+
echo 脚本需要以管理员身份运行
39+
set /p choice=请输入相应按键按回车确认[1-6]
40+
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,6%
41+
if /i "%choice%"=="1" goto install
42+
if /i "%choice%"=="2" goto start
43+
if /i "%choice%"=="3" goto restart
44+
if /i "%choice%"=="4" goto stop
45+
if /i "%choice%"=="5" goto status
46+
if /i "%choice%"=="6" goto uninstall
47+
if /i "%choice%"=="q" goto exit
48+
echo 无效的选择,请重试
49+
goto first
50+
51+
:install
52+
echo 正在安装蜜罐代理客户端
53+
cd ..
54+
:切换到上一级目录
55+
xcopy /y configs %systemroot%\syswow64\configs\
56+
xcopy /y cert %systemroot%\syswow64\cert\
57+
copy encrypt-miner-proxy_windows_amd64.exe %systemroot%\syswow64\encrypt-miner-proxy_windows_amd64_client.exe
58+
cd script
59+
encrypt-miner-proxy_windows_amd64_client_service.exe install
60+
encrypt-miner-proxy_windows_amd64_client_service.exe start
61+
echo 蜜罐代理客户端已启动
62+
pause
63+
goto exit
64+
65+
:start
66+
echo 正在启用蜜罐代理客户端
67+
encrypt-miner-proxy_windows_amd64_client_service.exe start
68+
pause
69+
cls
70+
goto first
71+
72+
:restart
73+
echo 正在重启蜜罐代理客户端
74+
encrypt-miner-proxy_windows_amd64_client_service.exe restart
75+
pause
76+
cls
77+
goto first
78+
79+
:stop
80+
echo 正在停用蜜罐代理客户端
81+
encrypt-miner-proxy_windows_amd64_client_service.exe stop
82+
pause
83+
cls
84+
goto first
85+
86+
:status
87+
echo 正在检查状态
88+
encrypt-miner-proxy_windows_amd64_client_service.exe status
89+
pause
90+
cls
91+
goto first
92+
93+
:uninstall
94+
echo 正在卸载蜜罐代理客户端
95+
encrypt-miner-proxy_windows_amd64_client_service.exe stop
96+
ping -n 3 127.0.0.1 > nul
97+
encrypt-miner-proxy_windows_amd64_client_service.exe uninstall
98+
del /f %systemroot%\syswow64\configs\client_proxy_config.yaml
99+
::rmdir /s/q %systemroot%\syswow64\cert\
100+
del /f %systemroot%\syswow64\encrypt-miner-proxy_windows_amd64_client.exe
101+
echo 按任意键退出安装程序
102+
pause
103+
goto exit
104+
105+
:exit
106+
exit
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
@echo OFF
2+
title encrypt-miner-proxy window server onekey setup
3+
mode con cols=70 lines=12
4+
color fc
5+
echo **********************************************************************
6+
echo 请先下载转发主程序https://github.com/ryu0007/EncryptMinerProxy
7+
echo 本脚本仅支持encrypt-miner-proxy_windows_amd64.exe
8+
9+
echo 本脚本需配合服务端代理主程序运行,请将脚本与主程序放在同一文件夹下
10+
echo 登录地址(本地)-http://127.0.0.1:29999/proxy/server/login
11+
echo 登录地址(外网)-http://{公网IP}:29999/proxy/server/login
12+
echo 用户名-ryu
13+
echo 密码-https://github.com/ryu0007/EncryptMinerProxy
14+
echo **********************************************************************
15+
echo 如果运行失败,请检查是否开启了UAC或者未用管理权限运行
16+
echo =============================================================
17+
echo 上述操作如果未完成,请关闭本脚本。如果已确认上述内容,请按任意键继续
18+
pause
19+
mode con cols=130 lines=20
20+
color 1E
21+
:first
22+
echo 蜜罐加密转发代理----服务端代理快速安装脚本
23+
echo =====================================
24+
echo 按1选择安装并启动蜜罐代理服务端
25+
echo -------------------------------------
26+
echo 按2选择启动蜜罐代理服务端
27+
echo -------------------------------------
28+
echo 按3选择重启蜜罐代理服务端
29+
echo -------------------------------------
30+
echo 按4选择停用蜜罐代理服务端
31+
echo -------------------------------------
32+
echo 按5选择查看蜜罐代理服务端状态
33+
echo -------------------------------------
34+
echo 按6选择卸载蜜罐代理服务端
35+
echo -------------------------------------
36+
echo 按q选择退出安装系统
37+
echo =====================================
38+
echo 脚本需要以管理员身份运行
39+
set /p choice=请输入相应按键按回车确认[1-6]
40+
IF NOT "%Choice%"=="" SET Choice=%Choice:~0,6%
41+
if /i "%choice%"=="1" goto install
42+
if /i "%choice%"=="2" goto start
43+
if /i "%choice%"=="3" goto restart
44+
if /i "%choice%"=="4" goto stop
45+
if /i "%choice%"=="5" goto status
46+
if /i "%choice%"=="6" goto uninstall
47+
if /i "%choice%"=="q" goto exit
48+
echo 无效的选择,请重试
49+
goto first
50+
51+
:install
52+
echo 正在安装蜜罐代理服务端
53+
cd ..
54+
:切换到上一级目录
55+
xcopy /y configs %systemroot%\syswow64\configs\
56+
xcopy /y cert %systemroot%\syswow64\cert\
57+
copy encrypt-miner-proxy_windows_amd64.exe %systemroot%\syswow64\
58+
cd script
59+
encrypt-miner-proxy_windows_amd64_service.exe install
60+
encrypt-miner-proxy_windows_amd64_service.exe start
61+
echo 蜜罐代理服务端已启动
62+
pause
63+
goto exit
64+
65+
:start
66+
echo 正在启用蜜罐代理服务端
67+
encrypt-miner-proxy_windows_amd64_service.exe start
68+
pause
69+
cls
70+
goto first
71+
72+
:restart
73+
echo 正在重启蜜罐代理服务端
74+
encrypt-miner-proxy_windows_amd64_service.exe restart
75+
pause
76+
cls
77+
goto first
78+
79+
:stop
80+
echo 正在停用蜜罐代理服务端
81+
encrypt-miner-proxy_windows_amd64_service.exe stop
82+
pause
83+
cls
84+
goto first
85+
86+
:status
87+
echo 正在检查状态
88+
encrypt-miner-proxy_windows_amd64_service.exe status
89+
pause
90+
cls
91+
goto first
92+
93+
:uninstall
94+
echo 正在卸载蜜罐代理服务端
95+
encrypt-miner-proxy_windows_amd64_service.exe stop
96+
ping -n 3 127.0.0.1 > nul
97+
encrypt-miner-proxy_windows_amd64_service.exe uninstall
98+
del /f %systemroot%\syswow64\configs\server_proxy_config.yaml
99+
::rmdir /s/q %systemroot%\syswow64\cert\
100+
del /f %systemroot%\syswow64\encrypt-miner-proxy_windows_amd64.exe
101+
echo 按任意键退出安装程序
102+
pause
103+
goto exit
104+
105+
:exit
106+
exit
Binary file not shown.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!--
2+
MIT License
3+
4+
Copyright (c) 2008-2020 Kohsuke Kawaguchi, Sun Microsystems, Inc., CloudBees,
5+
Inc., Oleg Nenashev and other contributors
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
-->
25+
26+
<!--
27+
This is an example of a minimal Windows Service Wrapper configuration, which includes only mandatory options.
28+
29+
This configuration file should be placed near the WinSW executable, the name should be the same.
30+
E.g. for myapp.exe the configuration file name should be myapp.xml
31+
32+
You can find more information about the configuration options here: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
33+
Full example: https://github.com/kohsuke/winsw/blob/master/examples/sample-allOptions.xml
34+
-->
35+
<service>
36+
37+
<!-- ID of the service. It should be unique across the Windows system-->
38+
<id>encrypt-miner-proxy-client</id>
39+
<!-- Display name of the service -->
40+
<name>encrypt-miner-proxy-client</name>
41+
<!-- Service description -->
42+
<description>encrypt-miner-proxy-client</description>
43+
44+
<!-- Path to the executable, which should be started -->
45+
<executable>%systemroot%\syswow64\encrypt-miner-proxy_windows_amd64_client.exe</executable>
46+
<arguments>-client</arguments>
47+
48+
</service>
Binary file not shown.

0 commit comments

Comments
 (0)