Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/k/v/Kvasir-HEAD/controllers/nessus.py   Kvasir(Download)
        try:
            # check to see if NessusAPI is working
            nessus = NessusAPI.NessusConnection(v.get('user'), v.get('password'), url=v.get('url'))
            reports = nessus.list_reports()
            for report in reports:
                # build a new nessus connection with the configured server details and download the report
                n_server = nessus_config.get('servers').get(server)
                nessus = NessusAPI.NessusConnection(n_server.get('user'), n_server.get('password'), url=n_server.get('url'))
                nessus.download_report(report_name, fout)
                fout.close()