Академический Документы
Профессиональный Документы
Культура Документы
different objects.
Following is a list of public methods available for some objects that can be accessed via Groovy Script. For some methods a brief information is
also presented in the Details column.
1 boolean hasTag(String Returns true if the host has tag otherwise returns false if tag is not present on asset or tag itself is not
tagName) there.
3 DateTime getCreated() Return time when asset is created. Return org.joda.time.DateTime object.
5 Long getRemoteVersion() -
10 List<Long> getTpMatchingQids() -
11 Boolean isDeleted() -
13 UUID getNetworkGuid() -
16 AssetType getAssetType() Return type of asset. AssetType is an enum. Possible values are:
1. UNKNOWN
2. HOST
3. SCANNER
4. WEBAPP
5. MALWARE_DOMAIN
6. APPLIANCE
1 String resultsForQid(Long qid) Returns the vulnerability results for the specified QID on this host, or NULL.
2 boolean hasVulnWithResults(Long qId, Returns true if the host have vulnerability with specified results.
String resultsSearch)
3 boolean hasAnyVuln(List<Integer> qids) Returns true if the host has any of the qids.
4 boolean hasVulnsWithSeverity(Integer... Returns true if the host has vulnerabilities with the severity.
severitys)
5 boolean hasAllPortsOpen(List<Integer> Returns true if the host has ALL the specified ports open (UDP OR TCP).
ports)
6 boolean hasAnyPortsOpen(List<Integer> Returns true if the host has ANY of the specified ports open (TCP OR UDP).
ports)
7 boolean hasSoftwareByName(String Returns true if any of the items in the installed software list have a name that
softwareName) CONTAINS the specified softwareName (case-insensitive).
9 String getHostName() -
10 Long getUserHostId() -
13 String getLastLoggedOnUser() -
14 TrackingMethod getTrackingMethod() -
15 String getNetbiosName() -
16 String getNetbiosNetworkId() -
17 String getOperatingSystem() -
2 Boolean getIsUpdated() -
1 URL getUrl() -
2 URL getNormalizedUrl() -
3 String[] getUris() -
5 Boolean getScannerLocked() -
6 String getHeaders() -
7 Boolean getBehaviorSitemapFile() -
8 String getDomains() -
13 boolean isMalwareEnabled() -
14 boolean isMalwareNotificationEnabled() -
15 String getMalwareScheduleTime() -
16 String getMalwareScheduleTimezone() -
17 Integer getMalwareSecurityRisk() -
18 Long getMalwareDomainId() -
19 Long getMalwareTaskId() -
20 int getPort() -
21 String getVhost() -
22 String getStartingUri() -
23 Boolean getHasScreenshot() -
24 Boolean getScannerLocked() -
Following methods can then be applied on any of the HostInstanceVuln objects from the list.
2 String getFqdn() -
3 Integer getPort() -
4 Boolean getSsl() -
5 Boolean isFound() If return true means open,reopen or new. If return false means fixed.
6 Boolean getIgnored() -
7 Boolean getDisabled() -
10 DateTime getLastScannedDate() Return org.joda.time.DateTime object. Return the last scan date.
12 Long getQgUserVulnId() -
1 = Potential
2 = Invalid/Deprecated
4 = Confirmed
14 String getFlags() -
15 Boolean getDeleted() -
16 Integer getVulnState() -
20 Long getQid() -
21 String getResults() -
Thereafter, get a VulnDef object on any of the HostInstanceVuln objects using VulnDef vulndef =hostInstanceVuln.getVuln();
2 String getCodevuln() -
3 String getType() -
5 Integer getRisk() -
6 String getFixType() -
7 Integer getTimeToFix() -
8 String getRemote() -
9 String getLocal() -
10 String getCategory() -
11 String getDomainvuln() -
15 String getStatus() -
16 String getPopularity() -
17 Integer getVerified() -
18 String getVulnpath() -
19 String getMlVer() -
20 String getVulnsigVer() -
v = potential vulnerability
p = pci-related vulnerability
c = NAC/NAM vulnerability
22 String getOs() -
23 String getService() -
24 String getPort() -
25 String getAccessvector() -
26 String getAccesscomplexity() -
27 String getAuthentication() -
28 String getConfidentialityimpact() -
29 String getImpactbias() -
30 String getIntegrityimpact() -
31 String getAvailabilityimpact() -
32 String getExploitability() -
33 String getRemediationlevel() -
34 String getReportconfidence() -
35 String getCollateraldamagepotential() -
36 String getTargetdistribution() -
37 Float getBasescore() -
38 Float getEnvscore() -
39 String getTemporalscore() -
40 String getStatusqa() -