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