mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 21:21:53 +08:00
Update scanner.go
This commit is contained in:
@@ -40,11 +40,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user