def reportList(self): nessusConverter = NessusConverter(self.nessusClient.reportList()) nessusConverter.reportToStructure() print "[*] Nessus Report List." tableReport = PrettyTable(["Status","Readable Name", "UUID", "Timestamp"]) if nessusConverter.nessusStructure.reportList is not None: for report in nessusConverter.nessusStructure.reportList: tableReport.add_row([report.status, report.readablename, report.name, report.timestamp]) print tableReport
def reportList(self): nessusConverter = NessusConverter(self.nessusClient.reportList()) nessusConverter.reportToStructure() print "[*] Nessus Report List." tableReport = PrettyTable( ["Status", "Readable Name", "UUID", "Timestamp"]) if nessusConverter.nessusStructure.reportList is not None: for report in nessusConverter.nessusStructure.reportList: tableReport.add_row([ report.status, report.readablename, report.name, report.timestamp ]) print tableReport
def reportDelete(self, reportUuid): nessusConverter = NessusConverter(self.nessusClient.reportDelete(reportUuid)) nessusConverter.reportToStructure() if nessusConverter.nessusStructure.report: print "[*] Report %s deleted." %(reportUuid)
def reportDelete(self, reportUuid): nessusConverter = NessusConverter( self.nessusClient.reportDelete(reportUuid)) nessusConverter.reportToStructure() if nessusConverter.nessusStructure.report: print "[*] Report %s deleted." % (reportUuid)