新增-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
+10 -5
View File
@@ -30,11 +30,16 @@ func Scan(info common.HostInfo) {
common.LogWG.Wait()
return
}
AlivePorts := PortScan(Hosts, info.Ports, info.Timeout)
fmt.Println("[*] alive ports len is:", len(AlivePorts))
if info.Scantype == "portscan" {
common.LogWG.Wait()
return
var AlivePorts []string
if info.Scantype == "webonly" {
AlivePorts = NoPortScan(Hosts, info.Ports)
} else {
AlivePorts = PortScan(Hosts, info.Ports, info.Timeout)
fmt.Println("[*] alive ports len is:", len(AlivePorts))
if info.Scantype == "portscan" {
common.LogWG.Wait()
return
}
}
var severports []string //severports := []string{"21","22","135"."445","1433","3306","5432","6379","9200","11211","27017"...}