From 9b38dc0006390169aed2a39230afd882393c671f Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Tue, 5 Aug 2025 00:36:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=80=BB=E8=BE=91=E4=BF=9D=E7=95=99=E7=A9=BA?= =?UTF-8?q?=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除密码解析时对空密码的过滤逻辑 - 保留用户在命令行或文件中指定的空密码 - 确保空口令爆破功能正常工作 - 更新.gitignore排除开发工具目录 --- .gitignore | 57 +++++++++++++++++++++++++++++++++++++++++++++++++ Common/Parse.go | 10 ++++----- 2 files changed, 61 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 937e9e1..438cfa5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,60 @@ fscan.exe fscan makefile fscanapi.csv + +# IDE files / IDE 文件 +.vscode/ +.cursor/ +.cursorrules +.claude/ + +# Local development files / 本地开发文件 +*.local +*.tmp +*.temp +.env +.env.local +.env.development +.env.test +.env.production + +# OS files / 操作系统文件 +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +desktop.ini + +# Logs / 日志文件 +*.log +logs/ +log/ + +# Test coverage / 测试覆盖率 +coverage.txt +coverage.html +*.cover + +# Build artifacts / 构建产物 +dist/ +build/ +bin/ +*.exe +*.dll +*.so +*.dylib + +# Go specific / Go 相关 +vendor/ +*.test +*.prof +*.mem +*.cpu +__debug_bin* + +# Local development tools / 本地开发工具 +.air.toml +air_tmp/ diff --git a/Common/Parse.go b/Common/Parse.go index d7f9ab4..b776d66 100644 --- a/Common/Parse.go +++ b/Common/Parse.go @@ -108,9 +108,8 @@ func parsePasswords() { if Password != "" { passes := strings.Split(Password, ",") for _, pass := range passes { - if pass != "" { - pwdList = append(pwdList, pass) - } + // 保留空密码,因为空口令是重要的安全测试场景 + pwdList = append(pwdList, pass) } Passwords = pwdList LogBase(GetText("load_passwords", len(pwdList))) @@ -125,9 +124,8 @@ func parsePasswords() { } for _, pass := range passes { - if pass != "" { - pwdList = append(pwdList, pass) - } + // 保留空密码,用户可能在文件中故意添加空行来测试空口令 + pwdList = append(pwdList, pass) } Passwords = pwdList LogBase(GetText("load_passwords_from_file", len(passes)))