mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-09-14 14:06:44 +08:00
update
This commit is contained in:
parent
70f1c6bd71
commit
e9292dc7ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user