update nobr

This commit is contained in:
影舞者
2022-01-10 16:48:28 +08:00
parent 9b6596315e
commit ebf990eca0
5 changed files with 24 additions and 6 deletions
+4 -1
View File
@@ -96,6 +96,9 @@ const (
)
func SmbGhost(info *common.HostInfo) error {
if common.IsBrute {
return nil
}
err := SmbGhostScan(info)
return err
}
@@ -105,7 +108,7 @@ func SmbGhostScan(info *common.HostInfo) error {
addr := fmt.Sprintf("%s:%v", info.Host, port)
conn, err := net.DialTimeout("tcp", addr, timeout)
defer func() {
if conn != nil{
if conn != nil {
conn.Close()
}
}()