From 7ec3cd15c45db8d54aa9af6d7653b47419fe37e4 Mon Sep 17 00:00:00 2001 From: SnowCat Security Bot Date: Fri, 13 Nov 2026 03:33:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(security):=20=E8=84=B1=E6=95=8F=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E8=84=9A=E6=9C=AC=E4=B8=AD=E7=9A=84=E7=96=91=E4=BC=BC?= =?UTF-8?q?=E7=9C=9F=E5=AE=9EQQ=E5=8F=B7=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - snowcat-launch.ps1: -Account 默认值与用法注释改为 (对齐 release-tools 已脱敏版本) - snowcat-launch-9937.ps1: 启动参数 -q<号码> 改为 -q 占位 - 说明: 一次性验证脚本与稳定线启动器不应把真实账号写死入库 --- snowcat-launch-9937.ps1 | 2 +- snowcat-launch.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/snowcat-launch-9937.ps1 b/snowcat-launch-9937.ps1 index 9e38443..aab086d 100644 --- a/snowcat-launch-9937.ps1 +++ b/snowcat-launch-9937.ps1 @@ -39,5 +39,5 @@ $env:NAPCAT_INJECT_PATH = Join-Path $NapcatDir 'NapCatWinBootHook.dll' $env:NAPCAT_MAIN_PATH = $mainJs Write-Host ("[OK] qqnt=" + $app.version + " build=" + $qqnt['buildVersion']) $logFile = Join-Path $NapcatDir ('snowcat-boot5-' + (Get-Date -Format 'HHmmss') + '.log') -Start-Process -FilePath (Join-Path $NapcatDir 'NapCatWinBootMain.exe') -ArgumentList ('"' + $QQPath + '"', '"' + (Join-Path $NapcatDir 'NapCatWinBootHook.dll') + '"', '-q3430961870') -WindowStyle Hidden -RedirectStandardError $logFile +Start-Process -FilePath (Join-Path $NapcatDir 'NapCatWinBootMain.exe') -ArgumentList ('"' + $QQPath + '"', '"' + (Join-Path $NapcatDir 'NapCatWinBootHook.dll') + '"', '-q') -WindowStyle Hidden -RedirectStandardError $logFile Write-Host 'launched' diff --git a/snowcat-launch.ps1 b/snowcat-launch.ps1 index 83046f0..59dc785 100644 --- a/snowcat-launch.ps1 +++ b/snowcat-launch.ps1 @@ -4,11 +4,11 @@ # ① 自动发现 QQ:注册表 → 常见路径 → D:/OneKey 便携 → 找不到给一键安装提示 # ② 自动读真实版本:versions/*/resources/app/package.json(废手工 qqnt.json 钉版) # ③ 自动生成 qqnt.json + loadNapCat.js 到运行时目录 -# 用法: .\snowcat-launch.ps1 [-Account 3430961870] [-NapcatDir C:\dsh\.tmp\napcat-shell] [-QQPath 自定义QQ.exe] +# 用法: .\snowcat-launch.ps1 [-Account ] [-NapcatDir C:\dsh\.tmp\napcat-shell] [-QQPath 自定义QQ.exe] # 2026-11-11 立项 · SnowCat Project param( - [string]$Account = '3430961870', + [string]$Account = '', [string]$NapcatDir = 'C:\dsh\.tmp\napcat-shell', [string]$QQPath = '', [switch]$InstallIfMissing