This commit is contained in:
shadow1ng 2021-04-18 14:03:07 +08:00
parent 78fb5339e6
commit 323d786c66

View File

@ -128,7 +128,7 @@ func ParseScantype(Info *HostInfo) {
if Info.Ports == DefaultPorts { if Info.Ports == DefaultPorts {
switch Info.Scantype { switch Info.Scantype {
case "webtitle": case "webtitle":
Info.Ports = "80,81,443,7001,8000,8080,8089,9200" Info.Ports = Webport
case "ms17010": case "ms17010":
Info.Ports = "445" Info.Ports = "445"
case "cve20200796": case "cve20200796":
@ -138,7 +138,7 @@ func ParseScantype(Info *HostInfo) {
port, _ := PORTList[Info.Scantype] port, _ := PORTList[Info.Scantype]
Info.Ports = strconv.Itoa(port) Info.Ports = strconv.Itoa(port)
} }
fmt.Println("if -m ", Info.Scantype, " only scan the port:", Info.Ports) fmt.Println("-m ", Info.Scantype, " start scan the port:", Info.Ports)
} }
} }
} }