Esempio n. 1
0
def download_report(report):
    """
    Return the entirety of a Nessus report - which is a glorified
    XML file. There is no filtering, and can be used to save directly
    to a file.
    """
    return request('file/report/download')
Esempio n. 2
0
def list_hosts(report):
    """
    Return a list of hosts included in a specified report uuid. 

    Each host is an OrderedDict with many fields, but the most useful
    one is:
    hostname -- the hostname of the host (e.g. server1.domain.org)
    """
    return _ensure_list(
        request('report/hosts', report=report)['hostList']['host'])