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) {
|
func Scan(info common.HostInfo) {
|
||||||
fmt.Println("start infoscan")
|
fmt.Println("start infoscan")
|
||||||
Hosts, _ := common.ParseIP(info.Host, common.HostFile)
|
Hosts, _ := common.ParseIP(info.Host, common.HostFile, common.NoHosts)
|
||||||
lib.Inithttp(common.Pocinfo)
|
lib.Inithttp(common.Pocinfo)
|
||||||
var ch = make(chan struct{}, common.Threads)
|
var ch = make(chan struct{}, common.Threads)
|
||||||
var wg = sync.WaitGroup{}
|
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]
|
info.Host, info.Ports = strings.Split(targetIP, ":")[0], strings.Split(targetIP, ":")[1]
|
||||||
if info.Scantype == "all" {
|
if info.Scantype == "all" {
|
||||||
switch {
|
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":
|
case info.Ports == "445":
|
||||||
//AddScan(info.Ports, info, ch, &wg) //smb
|
//AddScan(info.Ports, info, ch, &wg) //smb
|
||||||
AddScan("1000001", info, ch, &wg) //ms17010
|
AddScan("1000001", info, ch, &wg) //ms17010
|
||||||
|
Loading…
Reference in New Issue
Block a user