MCPcopy Create free account

hub / github.com/CiscoPSIRT/openVulnQuery / functions

Functions236 in github.com/CiscoPSIRT/openVulnQuery

↓ 19 callersMethodget_request
Send get request to OpenVuln API utilizing headers. :param path: OpenVuln API path. :param params: url parameters :return JSO
openVulnQuery/_library/query_client.py:327
↓ 17 callersMethodadvisory_list
Converts json into a list of advisory objects. :param advisories: A list of dictionaries describing advisories. :param adv_format: Th
openVulnQuery/_library/query_client.py:350
↓ 9 callersMethodget_by
Cartesian product ternary paths biased REST dispatcher.
openVulnQuery/_library/query_client.py:299
↓ 5 callersFunctionadd_options_to_parser
Centralized default option provider for parser (dialect optparse). :param option_parser: An instance of argparse.ArgumentParser (for now)
openVulnQuery/_library/cli_api.py:302
↓ 4 callersFunctionis_unicode_or_bytes
(argument)
openVulnQuery/_library/_compatibility.py:6
↓ 4 callersMethodraise_for_status
(self)
tests/test_query_client.py:161
↓ 3 callersMethod__init__
(self, path='', params=None)
openVulnQuery/_library/query_client.py:33
↓ 3 callersMethodjson
(self)
tests/test_query_client.py:158
↓ 3 callersFunctionsnapshot_name
Generate a snapshot name for kind and correlating id (by request). :var kind: A string that will be lower cased and postfixed (before exte
openVulnQuery/_library/query_client.py:368
↓ 2 callersMethod__init__
(self, advisory_id, sir, first_published, last_updated, cves, bug_ids, cvss_base_score, advis
openVulnQuery/_library/advisory.py:64
↓ 2 callersFunctionsnapshot_timestamp
Generate timestamp in format DEBUG_TIME_STAMP_FORMAT.
openVulnQuery/_library/query_client.py:363
↓ 1 callersFunction_flatten_datastructure
(field_list)
openVulnQuery/_library/utils.py:108
↓ 1 callersFunction_get_headers
Return list of unique headers.
openVulnQuery/_library/utils.py:103
↓ 1 callersFunction_reduce_list_dict
(node, vals)
openVulnQuery/_library/utils.py:121
↓ 1 callersFunction_to_csv
Write csv to a file, with option to specify a delimiter
openVulnQuery/_library/utils.py:83
↓ 1 callersFunction_to_json
Write json to a file
openVulnQuery/_library/utils.py:78
↓ 1 callersFunctionadvisory_format_factory_map
Map the advisory format tokens to callable instantiators.
openVulnQuery/_library/advisory.py:129
↓ 1 callersMethoddebug
(self, *args, **kwargs)
tests/test_advisory.py:31
↓ 1 callersFunctionensure_adv_format_token
(adv_format)
openVulnQuery/_library/query_client.py:28
↓ 1 callersMethodfilter
(self, *args)
openVulnQuery/_library/advisory.py:43
↓ 1 callersFunctionfilter_config
Provide rule conforming filter config from request of filters and API resource(s) requested.
openVulnQuery/_library/main.py:19
↓ 1 callersFunctionfilter_or_aggregate
Post process depending on requested fields and count aggregation.
openVulnQuery/_library/main.py:8
↓ 1 callersFunctionflatten_list
Flatten the structures returned as list.
openVulnQuery/_library/utils.py:98
↓ 1 callersMethodget_by_advisory
Return the advisory using requested advisory id
openVulnQuery/_library/query_client.py:116
↓ 1 callersMethodget_by_all
Return all the advisories using requested advisory format
openVulnQuery/_library/query_client.py:89
↓ 1 callersMethodget_by_cve
Return the advisory using requested cve id
openVulnQuery/_library/query_client.py:98
↓ 1 callersMethodget_by_severity
Return the advisories using requested severity
openVulnQuery/_library/query_client.py:125
↓ 1 callersMethodget_by_year
Return the advisories using requested year
openVulnQuery/_library/query_client.py:136
↓ 1 callersFunctionget_count
Count of the number of valid items in a particular advisory field.
openVulnQuery/_library/utils.py:50
↓ 1 callersMethodjson
(self)
tests/test_query_client_cvrf.py:131
↓ 1 callersFunctionmain
(string_list=None)
openVulnQuery/_library/main.py:44
↓ 1 callersFunctionmocked_requests_lib_get
Mocks library requests.get method
tests/test_query_client_cvrf.py:123
↓ 1 callersFunctionparser_factory
Knit CLI API together and produce an argparse based parser.
openVulnQuery/_library/cli_api.py:331
↓ 1 callersMethodraise_for_status
(self)
tests/test_authorization.py:41
↓ 1 callersFunctionrequest_snapshot
If env has CISCO_OPEN_VULN_API_DEBUG set (and evaluates to True) dump the data from the request to an existing folder as set by either env var
openVulnQuery/_library/query_client.py:382
↓ 1 callersFunctionresponse_snapshots
If env has CISCO_OPEN_VULN_API_DEBUG set (and evaluates to True) dump the data from the response to an existing folder as set by either env va
openVulnQuery/_library/query_client.py:406
Method__init__
(self, path, *args)
openVulnQuery/_library/query_client.py:39
Method__init__
(self, parameter_name='', *args)
openVulnQuery/_library/query_client.py:44
Method__init__
(self, *args)
openVulnQuery/_library/query_client.py:50
Method__init__
(self, *args)
openVulnQuery/_library/query_client.py:55
Method__init__
(self, *args)
openVulnQuery/_library/query_client.py:60
Method__init__
:param client_id: Client application Id as retrieved from API provider :param client_secret: Client secret as retrieved from API prov
openVulnQuery/_library/query_client.py:71
Method__init__
(self, *args, **kwargs)
openVulnQuery/_library/advisory.py:85
Method__init__
(self, *args, **kwargs)
openVulnQuery/_library/advisory.py:103
Method__init__
(self, legacyIpsId, releaseVersion, softwareVersion, legacyIpsUrl)
openVulnQuery/_library/advisory.py:115
Method__init__
(self, id, name, firstFixes, vulnerabilityState)
openVulnQuery/_library/advisory.py:123
Method__init__
(self, url=None, json_in=None, status_code=None)
tests/test_query_client.py:153
Method__init__
(self, status_code, json_response)
tests/test_query_client_cvrf.py:127
Method__init__
(self, url=None, json_in=None, status_code=None)
tests/test_authorization.py:33
Functionadvisory_factory
Converts json into a list of advisory objects. :param adv_data: A dictionary describing an advisory. :param adv_format: The target format in (
openVulnQuery/_library/advisory.py:134
Functioncount_fields
Counter dict from fields over all advisories.
openVulnQuery/_library/utils.py:40
Functionfilter_advisories
Filter the advisories per some criteria ... :param advisories: An iterable with advisory entries :param fields: The requested fields (TODO re
openVulnQuery/_library/utils.py:12
Methodget_by_aci
Return advisories by Cisco NX-OS (in ACI mode) advisories version
openVulnQuery/_library/query_client.py:206
Methodget_by_asa
Return advisories by Cisco ASA advisories version
openVulnQuery/_library/query_client.py:219
Methodget_by_bugid
Return the advisory using requested cve id
openVulnQuery/_library/query_client.py:107
Methodget_by_fmc
Return advisories by Cisco FMC advisories version
openVulnQuery/_library/query_client.py:233
Methodget_by_ftd
Return advisories by Cisco FTD advisories version
openVulnQuery/_library/query_client.py:245
Methodget_by_fxos
Return advisories by Cisco FXOS advisories version
openVulnQuery/_library/query_client.py:259
Methodget_by_ios
Return advisories by Cisco IOS advisories version
openVulnQuery/_library/query_client.py:180
Methodget_by_ios_xe
Return advisories by Cisco IOS advisories version
openVulnQuery/_library/query_client.py:168
Methodget_by_latest
Return the advisories using requested latest
openVulnQuery/_library/query_client.py:145
Methodget_by_nxos
Return advisories by Cisco NX-OS (standalone mode) advisories version
openVulnQuery/_library/query_client.py:192
Methodget_by_os
Return version information regarding the different Network Operating Systems.
openVulnQuery/_library/query_client.py:273
Methodget_by_platform
Return platform information regarding the different Network Operating Systems.
openVulnQuery/_library/query_client.py:286
Methodget_by_product
Return advisories by product name
openVulnQuery/_library/query_client.py:154
Functionget_oauth_token
Get OAuth2 token from api based on client id and secret. :param client_id: Client id stored in config file. :param client_secret: Client secr
openVulnQuery/_library/authorization.py:6
Functionget_output_filehandle
File handle if file_path given else returns stdout handle
openVulnQuery/_library/utils.py:136
Methodjson
(self)
tests/test_authorization.py:38
Functionmocked_get_requests
Mocks requests get method from QueryClient
tests/test_query_client_cvrf.py:115
Functionmocked_req_get
(*args, **kwargs)
tests/test_query_client.py:170
Functionmocked_req_post
(*args, **kwargs)
tests/test_query_client.py:151
Functionmocked_req_post
(*args, **kwargs)
tests/test_authorization.py:31
Functionoutput
Write data in CSV or JSON to file_handle . :param advisories: List of advisory objects. :param output_format: Either set as csv or json or us
openVulnQuery/_library/utils.py:64
Functionprocess_command_line
Interpret parameters given in command line.
openVulnQuery/_library/cli_api.py:356
Methodraise_for_status
(self)
tests/test_query_client_cvrf.py:134
Functionrest_with_auth_headers
Construct per session for sending with all GET requests to API.
openVulnQuery/_library/rest_api.py:11
MethodsetUp
(self)
tests/test_query_client_cvrf.py:157
Methodtest_add_options_to_parser_alien_target
(self)
tests/test_cli_api.py:53
Methodtest_advisory_advisory_factory_advisoryios_missing_key_oval_url
(self)
tests/test_advisory.py:114
Methodtest_advisory_advisory_factory_advisoryios_with_key_oval_url_and_rel
( self)
tests/test_advisory.py:166
Methodtest_advisory_advisory_factory_cvrf_missing_key_cvrf_url
(self)
tests/test_advisory.py:100
Methodtest_advisory_advisory_factory_cvrf_with_key_cvrf_url_and_ips
(self)
tests/test_advisory.py:142
Methodtest_advisory_advisory_factory_cvrf_with_key_cvrf_url_miss_ips
(self)
tests/test_advisory.py:121
Methodtest_advisory_advisory_factory_cvrf_wrong_format
(self)
tests/test_advisory.py:93
Methodtest_advisory_advisory_factory_oval_missing_key_oval_url
(self)
tests/test_advisory.py:107
Methodtest_advisory_advisory_factory_oval_with_key_oval_miss_ips
(self)
tests/test_advisory.py:135
Methodtest_advisory_advisory_factory_oval_with_key_oval_url_and_ips
(self)
tests/test_advisory.py:154
Methodtest_advisory_advisory_factory_oval_with_key_oval_url_miss_ips
(self)
tests/test_advisory.py:128
Methodtest_advisory_advisory_succeeds
(self)
tests/test_advisory.py:45
Methodtest_advisory_advisoryios_succeeds
(self)
tests/test_advisory.py:63
Methodtest_advisory_cvrf_succeeds
(self)
tests/test_advisory.py:51
Methodtest_advisory_cvrf_with_ips_sig_succeeds
(self)
tests/test_advisory.py:72
Methodtest_advisory_filterable_succeeds
(self)
tests/test_advisory.py:42
Methodtest_advisory_format_factory_map_succeeds
(self)
tests/test_advisory.py:84
Methodtest_advisory_ips_sig_map_key_unchanged
(self)
tests/test_advisory.py:39
Methodtest_advisory_ipssignature_succeeds
(self)
tests/test_advisory.py:69
Methodtest_advisory_list
(self)
tests/test_query_client_cvrf.py:220
Methodtest_advisory_oval_succeeds
(self)
tests/test_advisory.py:57
Methodtest_advisory_oval_with_ips_sig_succeeds
(self)
tests/test_advisory.py:78
Methodtest_advisory_unchanged_format_factory_map
(self)
tests/test_advisory.py:87
next →1–100 of 236, ranked by callers