mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
update
This commit is contained in:
parent
a2573e10bb
commit
fdffb369c9
@ -189,7 +189,7 @@ func getRespBody(oResp *http.Response) ([]byte, error) {
|
||||
}
|
||||
|
||||
func gettitle(body []byte) (title string) {
|
||||
re := regexp.MustCompile("(?ims)<title>(.*)</title>")
|
||||
re := regexp.MustCompile("(?ims)<title>(.*?)</title>")
|
||||
find := re.FindSubmatch(body)
|
||||
if len(find) > 1 {
|
||||
title = string(find[1])
|
||||
@ -217,7 +217,7 @@ func GetProtocol(host string, Timeout int64) (protocol string) {
|
||||
return
|
||||
}
|
||||
|
||||
socksconn, err := common.WrapperTcpWithTimeout("tcp", host, time.Duration(Timeout) * time.Second)
|
||||
socksconn, err := common.WrapperTcpWithTimeout("tcp", host, time.Duration(Timeout)*time.Second)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
@ -164,8 +164,7 @@ func ParseScantype(Info *HostInfo) {
|
||||
if !ok {
|
||||
showmode()
|
||||
}
|
||||
if Info.Scantype != "all" {
|
||||
if Info.Ports == DefaultPorts {
|
||||
if Info.Scantype != "all" && Info.Ports == DefaultPorts+","+Webport {
|
||||
switch Info.Scantype {
|
||||
case "rdp":
|
||||
Info.Ports = "3389"
|
||||
@ -187,7 +186,6 @@ func ParseScantype(Info *HostInfo) {
|
||||
}
|
||||
fmt.Println("-m ", Info.Scantype, " start scan the port:", Info.Ports)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func CheckErr(text string, err error, flag bool) {
|
||||
|
Loading…
Reference in New Issue
Block a user