From 0fb9f3898c389251c3f5b62e4eb92c36310ca9ec Mon Sep 17 00:00:00 2001 From: leefer Date: Sun, 27 Sep 2026 20:15:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=AF=AF=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E7=9A=84=E6=9C=AC=E5=9C=B0=E6=B5=8B=E8=AF=95=E4=BA=A7=E7=89=A9?= =?UTF-8?q?=E5=B9=B6=E5=BF=BD=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ .test_www/index.html | 1 - .wiz-test/SshTunnelManager/config.json | 28 -------------------------- .wiz-test/SshTunnelManager/known_hosts | 1 - .wiz-test/wiz.py | 26 ------------------------ 5 files changed, 2 insertions(+), 56 deletions(-) delete mode 100644 .test_www/index.html delete mode 100644 .wiz-test/SshTunnelManager/config.json delete mode 100644 .wiz-test/SshTunnelManager/known_hosts delete mode 100644 .wiz-test/wiz.py diff --git a/.gitignore b/.gitignore index 969b028..8d1e60c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ __pycache__/ .test_host_key *.log .crash.log +.test_www/ +.wiz-test/ diff --git a/.test_www/index.html b/.test_www/index.html deleted file mode 100644 index 34c6485..0000000 --- a/.test_www/index.html +++ /dev/null @@ -1 +0,0 @@ -

WIZARD-OK

diff --git a/.wiz-test/SshTunnelManager/config.json b/.wiz-test/SshTunnelManager/config.json deleted file mode 100644 index 583d244..0000000 --- a/.wiz-test/SshTunnelManager/config.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "hosts": [ - { - "id": "a6a8a6f5", - "name": "本机向导测试", - "hostname": "127.0.0.1", - "port": 2222, - "username": "test", - "auth": "password", - "password": "dpapi:AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAzni2ki6QM0W9HV1ipBcLPAAAAAACAAAAAAAQZgAAAAEAACAAAACEzy/56phqkFnZG+3rc7ODinJyOOszrzskmLsWLohEWgAAAAAOgAAAAAIAACAAAACnk3P/9dav98TxOrMZyz8+CyC0aSS0C3sRghY/u+4JZxAAAAAIPCoTBD+yaT1EUVFGwNITQAAAAMxgRjPaPFHuN2v7CwkgmCKMaCAE1oA0m+vDi1dujjEZJd/yT45VkRe9REH1V95/5CJLhDzf2cp2HY04WgxDMlU=", - "key_path": "", - "key_passphrase": "", - "note": "" - } - ], - "tunnels": [ - { - "id": "5005e5b2", - "name": "向导隧道", - "host_id": "a6a8a6f5", - "local_port": 13003, - "remote_host": "127.0.0.1", - "remote_port": 3210, - "autostart": false, - "autoreconnect": true - } - ] -} \ No newline at end of file diff --git a/.wiz-test/SshTunnelManager/known_hosts b/.wiz-test/SshTunnelManager/known_hosts deleted file mode 100644 index 255dabd..0000000 --- a/.wiz-test/SshTunnelManager/known_hosts +++ /dev/null @@ -1 +0,0 @@ -[127.0.0.1]:2222 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD0I9YPL8oqfY6L1d0LUrFmvVBtsMI5sxetirysUdgvtZXH/XRFqvLnrrG40NTJxTdfQ1avnj1ZRtXUVlYHVxYmwWJR0s2Rz0Q+UB5E9sDQhiww8lLwraD3hvN37iItMorS0qry2AWurKiHMtWw28GGQtP8Dwk8TBR5QLAS8BBAI54vq6m7dVbEpkJOzNl0lRMYJ64AL0S0ZrPplJgpJLEeXepcWhk8YTAelg7mPiL2hb81J0Bmy8DJIIwzv1h41jSIJecOZslQ9gYYpmCDbPmozooSgN8pCxPcCo0fmsJB2I73GKsPJACYOpcAeLGZA5uAfx8LHrr8sJkwQFrVaorB diff --git a/.wiz-test/wiz.py b/.wiz-test/wiz.py deleted file mode 100644 index abbc2a2..0000000 --- a/.wiz-test/wiz.py +++ /dev/null @@ -1,26 +0,0 @@ -import builtins, os, sys -here = os.path.dirname(os.path.abspath(__file__)) -os.environ["APPDATA"] = here # 隔离配置目录 -sys.path.insert(0, os.path.dirname(here)) -import getpass -getpass.getpass = lambda *a, **k: "test123" # 密码桩 -import cli - -ANSWERS = iter([ - "1", # 选择:新增主机 - "test@127.0.0.1", # SSH 目标 - "2222", # SSH 端口 - "1", # 认证方式:密码 - "本机向导测试", # 主机备注名 - "1", # 选择:新建隧道 - "127.0.0.1", # 远程服务地址(默认) - "3210", # 远程服务端口 - "13003", # 本地端口(避开本机 3210 测试服务) - "向导隧道", # 隧道备注名 -]) -def fake_input(prompt=""): - a = next(ANSWERS) - print(f"{prompt}[{a}]") - return a -builtins.input = fake_input -sys.exit(cli.wizard(cli.Store(cli.data_root())))