perf: 统一错误输出

This commit is contained in:
ZacharyZcR
2024-12-21 17:21:41 +08:00
parent 497bc2e86b
commit 33cb33b1ad
7 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -71,14 +71,14 @@ func FcgiScan(info *Common.HostInfo) error {
}
}()
if err != nil {
fmt.Printf("[!] FastCGI连接失败 %v:%v - %v\n", info.Host, info.Ports, err)
fmt.Printf("[-] FastCGI连接失败 %v:%v - %v\n", info.Host, info.Ports, err)
return err
}
// 发送FastCGI请求
stdout, stderr, err := fcgi.Request(env, reqParams)
if err != nil {
fmt.Printf("[!] FastCGI请求失败 %v:%v - %v\n", info.Host, info.Ports, err)
fmt.Printf("[-] FastCGI请求失败 %v:%v - %v\n", info.Host, info.Ports, err)
return err
}
+1 -1
View File
@@ -32,7 +32,7 @@ type Brutelist struct {
func RdpScan(info *Common.HostInfo) (tmperr error) {
defer func() {
if err := recover(); err != nil {
fmt.Printf("[!] 扫描错误 %v:%v - %v\n", info.Host, info.Ports, err)
fmt.Printf("[-] 扫描错误 %v:%v - %v\n", info.Host, info.Ports, err)
}
}()
if Common.DisableBrute {
+1 -1
View File
@@ -105,6 +105,6 @@ func doWithTimeOut(info *Common.HostInfo, user string, pass string) (flag bool,
case <-signal:
return flag, err
case <-time.After(time.Duration(Common.Timeout) * time.Second):
return false, errors.New("[!] SMB连接超时")
return false, errors.New("[-] SMB连接超时")
}
}