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)))