@@ -430,6 +430,13 @@ def _unpack_json_file(c, _):
430430 content_handler = _unpack_json_file ,
431431 )
432432
433+ getsploit = Endpoint (
434+ method = "get" ,
435+ url = "/api/v3/archive/getsploit/" ,
436+ params = [],
437+ result_type = "zip" ,
438+ )
439+
433440 del _unpack_json_file
434441
435442 @validate_params (collection = String (), start_date = String (), end_date = String ())
@@ -596,6 +603,25 @@ def scanlist_report(self, limit=30, offset=0, filter=None, sort=''):
596603 ]
597604 )
598605
606+ @validate_params (
607+ limit = Integer (minimum = 1 , maximum = 10000 ),
608+ offset = Integer (minimum = 0 , maximum = 10000 ),
609+ filter = Dict (),
610+ sort = String ()
611+ )
612+ def hostvulns_report (self , limit = 30 , offset = 0 , filter = None , sort = '' ):
613+ """
614+ Get Linux Audit results. Return list of hosts and host vulnerabilities:
615+ host ip and fqdn, os name and version, cumulative fix, vulnerability ids
616+
617+ limit: The maximum number of items to return. 10000 is the hard limit.
618+ offset: Skip this amount of items. 10000 is the hard limit.
619+ filter: Dict of fields to filter, eg { 'OS': 'Centos', 'OSVersion': '7'}
620+ sort: Field to sort, eg 'modified' or '-modified' to sort desc
621+ """
622+
623+ return self .__report ("hostvulns" , offset , limit , filter or {}, sort )
624+
599625
600626_Unset = object ()
601627
0 commit comments