新增-m webonly,跳过端口扫描,直接访问http。致谢@AgeloVito

This commit is contained in:
影舞者
2022-02-25 15:29:45 +08:00
parent 2ebda8baa9
commit c64c64477b
9 changed files with 75 additions and 34 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ func FindnetScan(info *common.HostInfo) error {
realhost := fmt.Sprintf("%s:%v", info.Host, 135)
conn, err := net.DialTimeout("tcp", realhost, time.Duration(info.Timeout)*time.Second)
defer func() {
if conn != nil{
if conn != nil {
conn.Close()
}
}()
@@ -71,7 +71,7 @@ func read(text []byte, host string) error {
encodedStr := hex.EncodeToString(text)
hostnames := strings.Replace(encodedStr, "0700", "", -1)
hostname := strings.Split(hostnames, "000000")
result := "NetInfo:\n[*]" + host
result := "[+] NetInfo:\n[*]" + host
for i := 0; i < len(hostname); i++ {
hostname[i] = strings.Replace(hostname[i], "00", "", -1)
host, err := hex.DecodeString(hostname[i])