Closed Barnoux closed 1 year ago
The error message shows an extra comma in the filter:
The filter \'pluginText,\' is invalid
On the PC_SU_AUGUST line, change:
('pluginText,', '=', 'Latest effective update level : 08_2022')
to
('pluginText', '=', 'Latest effective update level : 08_2022')
Thank you and sorry ^^* And if i want to use regex instead, do you know what is the synthax ?
@Barnoux Tenable.SC's analysis API does not seem to be supporting regex. Also, the vulns
method in pyTenable accepts the following for the field - filters
:
a list of tuples. Each tuple is broken down into (field, operator, value)
Thanks a lot for the answers !
Hello,
I didn't find a documentation that could help me to resolve this. How do you use correctly pluginText filter like in this code bellow ?
I got this error:
restfly.errors.APIError: [403: POST] https://172.20.37.35:443/rest/analysis body=b'{"type":"regular","response":"","error_code":146,"error_msg":"The filter \'pluginText,\' is invalid (valid filters: acceptedRisk, acceptRiskStatus, assetID, auditFileID, benchmarkName, cceID, cpe, cveID, baseCVSSScore, cvssVector, cvssV3BaseScore, cvssV3Vector, dataFormat, daysMitigated, daysToMitigated, dnsName, exploitAvailable, exploitFrameworks, familyID, firstSeen, iavmID, ip, lastMitigated, lastSeen, mitigatedStatus, msbulletinID, outputAssets, patchPublished, pluginModified, pluginPublished, pluginID, pluginName, pluginText, pluginType, policyID, port, protocol, recastRisk, recastRiskStatus, repositoryIDs, responsibleUserIDs, vulnRoutedUserIDs, vulnRoutingRuleID, severity, solutionID, stigSeverity , tcpport, udpport, uuid, vulnPublished, wasMitigated, xref, vprScore, assetCriticalityRating, hostUUID, assetExposureScore, aesSeverity).\\n","warnings":[],"timestamp":1668531958}\n'