From e9292dc7adcaa6592059fc713dff06381c00e110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=B1=E8=88=9E=E8=80=85?= Date: Wed, 13 Oct 2021 09:29:24 +0800 Subject: [PATCH] update --- Plugins/scanner.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plugins/scanner.go b/Plugins/scanner.go index 9077d24..9c4b15b 100644 --- a/Plugins/scanner.go +++ b/Plugins/scanner.go @@ -13,7 +13,7 @@ import ( func Scan(info common.HostInfo) { fmt.Println("start infoscan") - Hosts, _ := common.ParseIP(info.Host, common.HostFile) + Hosts, _ := common.ParseIP(info.Host, common.HostFile, common.NoHosts) lib.Inithttp(common.Pocinfo) var ch = make(chan struct{}, common.Threads) var wg = sync.WaitGroup{} @@ -40,6 +40,11 @@ func Scan(info common.HostInfo) { info.Host, info.Ports = strings.Split(targetIP, ":")[0], strings.Split(targetIP, ":")[1] if info.Scantype == "all" { switch { + case info.Ports == "135": + AddScan(info.Ports, info, ch, &wg) //findnet + if common.IsWmi { + AddScan("1000005", info, ch, &wg) //wmiexec + } case info.Ports == "445": //AddScan(info.Ports, info, ch, &wg) //smb AddScan("1000001", info, ch, &wg) //ms17010