Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CiscoPSIRT/openVulnQuery
/ functions
Functions
236 in github.com/CiscoPSIRT/openVulnQuery
⨍
Functions
236
◇
Types & classes
26
↳
Endpoints
22
↓ 19 callers
Method
get_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 callers
Method
advisory_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 callers
Method
get_by
Cartesian product ternary paths biased REST dispatcher.
openVulnQuery/_library/query_client.py:299
↓ 5 callers
Function
add_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 callers
Function
is_unicode_or_bytes
(argument)
openVulnQuery/_library/_compatibility.py:6
↓ 4 callers
Method
raise_for_status
(self)
tests/test_query_client.py:161
↓ 3 callers
Method
__init__
(self, path='', params=None)
openVulnQuery/_library/query_client.py:33
↓ 3 callers
Method
json
(self)
tests/test_query_client.py:158
↓ 3 callers
Function
snapshot_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 callers
Method
__init__
(self, advisory_id, sir, first_published, last_updated, cves, bug_ids, cvss_base_score, advis
openVulnQuery/_library/advisory.py:64
↓ 2 callers
Function
snapshot_timestamp
Generate timestamp in format DEBUG_TIME_STAMP_FORMAT.
openVulnQuery/_library/query_client.py:363
↓ 1 callers
Function
_flatten_datastructure
(field_list)
openVulnQuery/_library/utils.py:108
↓ 1 callers
Function
_get_headers
Return list of unique headers.
openVulnQuery/_library/utils.py:103
↓ 1 callers
Function
_reduce_list_dict
(node, vals)
openVulnQuery/_library/utils.py:121
↓ 1 callers
Function
_to_csv
Write csv to a file, with option to specify a delimiter
openVulnQuery/_library/utils.py:83
↓ 1 callers
Function
_to_json
Write json to a file
openVulnQuery/_library/utils.py:78
↓ 1 callers
Function
advisory_format_factory_map
Map the advisory format tokens to callable instantiators.
openVulnQuery/_library/advisory.py:129
↓ 1 callers
Method
debug
(self, *args, **kwargs)
tests/test_advisory.py:31
↓ 1 callers
Function
ensure_adv_format_token
(adv_format)
openVulnQuery/_library/query_client.py:28
↓ 1 callers
Method
filter
(self, *args)
openVulnQuery/_library/advisory.py:43
↓ 1 callers
Function
filter_config
Provide rule conforming filter config from request of filters and API resource(s) requested.
openVulnQuery/_library/main.py:19
↓ 1 callers
Function
filter_or_aggregate
Post process depending on requested fields and count aggregation.
openVulnQuery/_library/main.py:8
↓ 1 callers
Function
flatten_list
Flatten the structures returned as list.
openVulnQuery/_library/utils.py:98
↓ 1 callers
Method
get_by_advisory
Return the advisory using requested advisory id
openVulnQuery/_library/query_client.py:116
↓ 1 callers
Method
get_by_all
Return all the advisories using requested advisory format
openVulnQuery/_library/query_client.py:89
↓ 1 callers
Method
get_by_cve
Return the advisory using requested cve id
openVulnQuery/_library/query_client.py:98
↓ 1 callers
Method
get_by_severity
Return the advisories using requested severity
openVulnQuery/_library/query_client.py:125
↓ 1 callers
Method
get_by_year
Return the advisories using requested year
openVulnQuery/_library/query_client.py:136
↓ 1 callers
Function
get_count
Count of the number of valid items in a particular advisory field.
openVulnQuery/_library/utils.py:50
↓ 1 callers
Method
json
(self)
tests/test_query_client_cvrf.py:131
↓ 1 callers
Function
main
(string_list=None)
openVulnQuery/_library/main.py:44
↓ 1 callers
Function
mocked_requests_lib_get
Mocks library requests.get method
tests/test_query_client_cvrf.py:123
↓ 1 callers
Function
parser_factory
Knit CLI API together and produce an argparse based parser.
openVulnQuery/_library/cli_api.py:331
↓ 1 callers
Method
raise_for_status
(self)
tests/test_authorization.py:41
↓ 1 callers
Function
request_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 callers
Function
response_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
Function
advisory_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
Function
count_fields
Counter dict from fields over all advisories.
openVulnQuery/_library/utils.py:40
Function
filter_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
Method
get_by_aci
Return advisories by Cisco NX-OS (in ACI mode) advisories version
openVulnQuery/_library/query_client.py:206
Method
get_by_asa
Return advisories by Cisco ASA advisories version
openVulnQuery/_library/query_client.py:219
Method
get_by_bugid
Return the advisory using requested cve id
openVulnQuery/_library/query_client.py:107
Method
get_by_fmc
Return advisories by Cisco FMC advisories version
openVulnQuery/_library/query_client.py:233
Method
get_by_ftd
Return advisories by Cisco FTD advisories version
openVulnQuery/_library/query_client.py:245
Method
get_by_fxos
Return advisories by Cisco FXOS advisories version
openVulnQuery/_library/query_client.py:259
Method
get_by_ios
Return advisories by Cisco IOS advisories version
openVulnQuery/_library/query_client.py:180
Method
get_by_ios_xe
Return advisories by Cisco IOS advisories version
openVulnQuery/_library/query_client.py:168
Method
get_by_latest
Return the advisories using requested latest
openVulnQuery/_library/query_client.py:145
Method
get_by_nxos
Return advisories by Cisco NX-OS (standalone mode) advisories version
openVulnQuery/_library/query_client.py:192
Method
get_by_os
Return version information regarding the different Network Operating Systems.
openVulnQuery/_library/query_client.py:273
Method
get_by_platform
Return platform information regarding the different Network Operating Systems.
openVulnQuery/_library/query_client.py:286
Method
get_by_product
Return advisories by product name
openVulnQuery/_library/query_client.py:154
Function
get_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
Function
get_output_filehandle
File handle if file_path given else returns stdout handle
openVulnQuery/_library/utils.py:136
Method
json
(self)
tests/test_authorization.py:38
Function
mocked_get_requests
Mocks requests get method from QueryClient
tests/test_query_client_cvrf.py:115
Function
mocked_req_get
(*args, **kwargs)
tests/test_query_client.py:170
Function
mocked_req_post
(*args, **kwargs)
tests/test_query_client.py:151
Function
mocked_req_post
(*args, **kwargs)
tests/test_authorization.py:31
Function
output
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
Function
process_command_line
Interpret parameters given in command line.
openVulnQuery/_library/cli_api.py:356
Method
raise_for_status
(self)
tests/test_query_client_cvrf.py:134
Function
rest_with_auth_headers
Construct per session for sending with all GET requests to API.
openVulnQuery/_library/rest_api.py:11
Method
setUp
(self)
tests/test_query_client_cvrf.py:157
Method
test_add_options_to_parser_alien_target
(self)
tests/test_cli_api.py:53
Method
test_advisory_advisory_factory_advisoryios_missing_key_oval_url
(self)
tests/test_advisory.py:114
Method
test_advisory_advisory_factory_advisoryios_with_key_oval_url_and_rel
( self)
tests/test_advisory.py:166
Method
test_advisory_advisory_factory_cvrf_missing_key_cvrf_url
(self)
tests/test_advisory.py:100
Method
test_advisory_advisory_factory_cvrf_with_key_cvrf_url_and_ips
(self)
tests/test_advisory.py:142
Method
test_advisory_advisory_factory_cvrf_with_key_cvrf_url_miss_ips
(self)
tests/test_advisory.py:121
Method
test_advisory_advisory_factory_cvrf_wrong_format
(self)
tests/test_advisory.py:93
Method
test_advisory_advisory_factory_oval_missing_key_oval_url
(self)
tests/test_advisory.py:107
Method
test_advisory_advisory_factory_oval_with_key_oval_miss_ips
(self)
tests/test_advisory.py:135
Method
test_advisory_advisory_factory_oval_with_key_oval_url_and_ips
(self)
tests/test_advisory.py:154
Method
test_advisory_advisory_factory_oval_with_key_oval_url_miss_ips
(self)
tests/test_advisory.py:128
Method
test_advisory_advisory_succeeds
(self)
tests/test_advisory.py:45
Method
test_advisory_advisoryios_succeeds
(self)
tests/test_advisory.py:63
Method
test_advisory_cvrf_succeeds
(self)
tests/test_advisory.py:51
Method
test_advisory_cvrf_with_ips_sig_succeeds
(self)
tests/test_advisory.py:72
Method
test_advisory_filterable_succeeds
(self)
tests/test_advisory.py:42
Method
test_advisory_format_factory_map_succeeds
(self)
tests/test_advisory.py:84
Method
test_advisory_ips_sig_map_key_unchanged
(self)
tests/test_advisory.py:39
Method
test_advisory_ipssignature_succeeds
(self)
tests/test_advisory.py:69
Method
test_advisory_list
(self)
tests/test_query_client_cvrf.py:220
Method
test_advisory_oval_succeeds
(self)
tests/test_advisory.py:57
Method
test_advisory_oval_with_ips_sig_succeeds
(self)
tests/test_advisory.py:78
Method
test_advisory_unchanged_format_factory_map
(self)
tests/test_advisory.py:87
next →
1–100 of 236, ranked by callers