diff --git a/Plugins/webtitle.go b/Plugins/webtitle.go index c1d7e9f..005e855 100644 --- a/Plugins/webtitle.go +++ b/Plugins/webtitle.go @@ -2,6 +2,7 @@ package Plugins import ( "bytes" + "compress/gzip" "fmt" "github.com/shadow1ng/fscan/WebScan" "github.com/shadow1ng/fscan/WebScan/lib" @@ -9,6 +10,7 @@ import ( "golang.org/x/net/html/charset" "golang.org/x/text/encoding/simplifiedchinese" "golang.org/x/text/transform" + "io" "io/ioutil" "net/http" "net/url" @@ -132,7 +134,10 @@ func geturl(info *common.HostInfo, flag int, CheckData []WebScan.CheckDatas) (er if err == nil { defer resp.Body.Close() var title string - body, _ := ioutil.ReadAll(resp.Body) + body, err := getRespBody(resp) + if err != nil { + return err, "", CheckData + } if flag != 2 { re := regexp.MustCompile("(?im)