This commit is contained in:
crusader 2018-04-28 19:20:11 +09:00
parent 2966713cb5
commit 77a981cff9

View File

@ -13,25 +13,25 @@ import (
)
var (
dz = &ocmd.DiscoveryZone{
dz = &ocmd.DiscoverZone{
ExcludePatterns: []string{},
}
z = &ocmd.Zone{
Network: "192.168.1.0/24",
IP: "192.168.1.101",
IPV4: "192.168.1.101",
Iface: "enp3s0",
Mac: "44:8a:5b:f1:f1:f3",
}
dh = &ocmd.DiscoveryHost{
FirstScanRange: "192.168.1.1",
LastScanRange: "192.168.1.254",
dh = &ocmd.DiscoverHost{
FirstScanRangeV4: "192.168.1.1",
LastScanRangeV4: "192.168.1.254",
}
h = &ocmd.Host{
Zone: z,
IP: "192.168.1.10",
IPV4: "192.168.1.10",
Mac: "d0:50:99:97:5d:99",
}
dp = &ocmd.DiscoveryPort{
dp = &ocmd.DiscoverPort{
FirstScanRange: 1,
LastScanRange: 50000,
ExcludePorts: []int{
@ -45,42 +45,42 @@ var (
PortType: occc.PortTypeTCP,
PortNumber: json.Number(strconv.Itoa(80)),
}
ds = &ocmd.DiscoveryService{
ds = &ocmd.DiscoverService{
IncludeServices: []string{
"ACTIVEDIRECTORY",
"CASSANDRA",
"DHCP",
"DNS",
// "ACTIVEDIRECTORY",
// "CASSANDRA",
// "DHCP",
// "DNS",
"FTP",
"HTTP",
"IMAP",
"LDAP",
"MONGODB",
"MSSQL",
"MYSQL",
"NETBIOS",
"ORACLE",
"POP",
"POSTGRESQL",
"REDIS",
"RMI",
"SMB",
"SMTP",
"SNMP",
"SSH",
"TELNET",
"WMI",
"UNKNOWN",
"SSH",
"WMI",
"SNMP",
// "HTTP",
// "IMAP",
// "LDAP",
// "MONGODB",
// "MSSQL",
// "MYSQL",
// "NETBIOS",
// "ORACLE",
// "POP",
// "POSTGRESQL",
// "REDIS",
// "RMI",
// "SMB",
// "SMTP",
// "SNMP",
// "SSH",
// "TELNET",
// "WMI",
// "UNKNOWN",
// "SSH",
// "WMI",
// "SNMP",
},
}
dha = &ocmd.DiscoveryHost{
FirstScanRange: "192.168.1.1",
LastScanRange: "192.168.1.254",
DiscoveryPort: &ocmd.DiscoveryPort{
dha = &ocmd.DiscoverHost{
FirstScanRangeV4: "192.168.1.1",
LastScanRangeV4: "192.168.1.254",
DiscoverPort: &ocmd.DiscoverPort{
FirstScanRange: 1,
LastScanRange: 50000,
ExcludePorts: []int{
@ -88,7 +88,7 @@ var (
},
IncludeTCP: true,
IncludeUDP: false,
DiscoveryService: ds,
DiscoverService: ds,
},
}
)