Update 1.8.3

This commit is contained in:
影舞者
2023-11-13 12:42:02 +08:00
parent 7f7ae9dc65
commit 6bf396d09f
24 changed files with 420 additions and 124 deletions
+2 -6
View File
@@ -24,11 +24,7 @@ func Findnet(info *common.HostInfo) error {
func FindnetScan(info *common.HostInfo) error {
realhost := fmt.Sprintf("%s:%v", info.Host, 135)
conn, err := common.WrapperTcpWithTimeout("tcp", realhost, time.Duration(common.Timeout)*time.Second)
defer func() {
if conn != nil {
conn.Close()
}
}()
defer conn.Close()
if err != nil {
return err
}
@@ -109,7 +105,7 @@ func read(text []byte, host string) error {
hostnames := strings.Replace(encodedStr, "0700", "", -1)
hostname := strings.Split(hostnames, "000000")
result := "[*] NetInfo:\n[*]" + host
result := "[*] NetInfo \n[*]" + host
if name != "" {
result += "\n [->]" + name
}