Fixed discovery and targetDiscovery

This commit is contained in:
snoop 2018-04-24 19:46:39 +09:00
parent 074ae3c305
commit d69fe39278
7 changed files with 271 additions and 1 deletions

View File

@ -9,5 +9,45 @@ public class DiscoverHost {
private String[] excludeHosts; private String[] excludeHosts;
private String[] includeHosts; private String[] includeHosts;
private DiscoverPort discoverPort; private DiscoverPort discoverPort;
public String getFirstScanRange() {
return firstScanRange;
}
public void setFirstScanRange(String firstScanRange) {
this.firstScanRange = firstScanRange;
}
public String getLastScanRange() {
return lastScanRange;
}
public void setLastScanRange(String lastScanRange) {
this.lastScanRange = lastScanRange;
}
public String[] getExcludeHosts() {
return excludeHosts;
}
public void setExcludeHosts(String[] excludeHosts) {
this.excludeHosts = excludeHosts;
}
public String[] getIncludeHosts() {
return includeHosts;
}
public void setIncludeHosts(String[] includeHosts) {
this.includeHosts = includeHosts;
}
public DiscoverPort getDiscoverPort() {
return discoverPort;
}
public void setDiscoverPort(DiscoverPort discoverPort) {
this.discoverPort = discoverPort;
}
} }

View File

@ -12,4 +12,52 @@ public class DiscoverPort {
private boolean includeUDP; private boolean includeUDP;
private DiscoverService discoverService; private DiscoverService discoverService;
public int getFirstScanRange() {
return firstScanRange;
}
public void setFirstScanRange(int firstScanRange) {
this.firstScanRange = firstScanRange;
}
public int getLastScanRange() {
return lastScanRange;
}
public void setLastScanRange(int lastScanRange) {
this.lastScanRange = lastScanRange;
}
public int[] getExcludePorts() {
return excludePorts;
}
public void setExcludePorts(int[] excludePorts) {
this.excludePorts = excludePorts;
}
public boolean isIncludeTCP() {
return includeTCP;
}
public void setIncludeTCP(boolean includeTCP) {
this.includeTCP = includeTCP;
}
public boolean isIncludeUDP() {
return includeUDP;
}
public void setIncludeUDP(boolean includeUDP) {
this.includeUDP = includeUDP;
}
public DiscoverService getDiscoverService() {
return discoverService;
}
public void setDiscoverService(DiscoverService discoverService) {
this.discoverService = discoverService;
}
} }

View File

@ -5,4 +5,12 @@ package com.loafle.overflow.model.discovery;
*/ */
public class DiscoverService { public class DiscoverService {
private String[] includeServices; private String[] includeServices;
public String[] getIncludeServices() {
return includeServices;
}
public void setIncludeServices(String[] includeServices) {
this.includeServices = includeServices;
}
} }

View File

@ -6,4 +6,20 @@ package com.loafle.overflow.model.discovery;
public class DiscoverZone { public class DiscoverZone {
private String[] excludePatterns; private String[] excludePatterns;
private DiscoverHost discoverHost; private DiscoverHost discoverHost;
public String[] getExcludePatterns() {
return excludePatterns;
}
public void setExcludePatterns(String[] excludePatterns) {
this.excludePatterns = excludePatterns;
}
public DiscoverHost getDiscoverHost() {
return discoverHost;
}
public void setDiscoverHost(DiscoverHost discoverHost) {
this.discoverHost = discoverHost;
}
} }

View File

@ -17,4 +17,62 @@ public class Host {
private Zone zone; private Zone zone;
private boolean target;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getMac() {
return mac;
}
public void setMac(String mac) {
this.mac = mac;
}
public String getOs() {
return os;
}
public void setOs(String os) {
this.os = os;
}
public Date getDiscoveredDate() {
return discoveredDate;
}
public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate;
}
public Zone getZone() {
return zone;
}
public void setZone(Zone zone) {
this.zone = zone;
}
public boolean isTarget() {
return target;
}
public void setTarget(boolean target) {
this.target = target;
}
} }

View File

@ -16,4 +16,54 @@ public class Port {
private Date discoveredDate; private Date discoveredDate;
private Host host; private Host host;
private boolean target;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public PortType getPortType() {
return portType;
}
public void setPortType(PortType portType) {
this.portType = portType;
}
public int getPortNumber() {
return portNumber;
}
public void setPortNumber(int portNumber) {
this.portNumber = portNumber;
}
public Date getDiscoveredDate() {
return discoveredDate;
}
public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate;
}
public Host getHost() {
return host;
}
public void setHost(Host host) {
this.host = host;
}
public boolean isTarget() {
return target;
}
public void setTarget(boolean target) {
this.target = target;
}
} }

View File

@ -17,4 +17,54 @@ public class Service {
private Date discoveredDate; private Date discoveredDate;
private Port port; private Port port;
private boolean target;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public CryptoType getCryptoType() {
return cryptoType;
}
public void setCryptoType(CryptoType cryptoType) {
this.cryptoType = cryptoType;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public Date getDiscoveredDate() {
return discoveredDate;
}
public void setDiscoveredDate(Date discoveredDate) {
this.discoveredDate = discoveredDate;
}
public Port getPort() {
return port;
}
public void setPort(Port port) {
this.port = port;
}
public boolean isTarget() {
return target;
}
public void setTarget(boolean target) {
this.target = target;
}
} }