def policyCopy(self, policyId): nessusConverter = NessusConverter(self.nessusClient.policyCopy(policyId)) nessusConverter.policyStructureToStructure() print "[*] Policy Copy" tablePolicies = PrettyTable(["Id", "Name","Owner","Visibility"]) for policy in nessusConverter.nessusStructure.nessusPolicies: tablePolicies.add_row([policy.name, policy.value]) print tablePolicies
def policyList(self): nessusConverter = NessusConverter(self.nessusClient.policyList()) nessusConverter.policyStructureToStructure() print "[*] Policy List" tablePolicies = PrettyTable(["Id", "Name","Owner","Visibility"]) for policy in nessusConverter.nessusStructure.nessusPolicies: tablePolicies.add_row([policy.policyId, policy.policyName, policy.policyOwner, policy.policyVisibility]) print tablePolicies
def policyCopy(self, policyId): nessusConverter = NessusConverter( self.nessusClient.policyCopy(policyId)) nessusConverter.policyStructureToStructure() print "[*] Policy Copy" tablePolicies = PrettyTable(["Id", "Name", "Owner", "Visibility"]) for policy in nessusConverter.nessusStructure.nessusPolicies: tablePolicies.add_row([policy.name, policy.value]) print tablePolicies
def policyList(self): nessusConverter = NessusConverter(self.nessusClient.policyList()) nessusConverter.policyStructureToStructure() print "[*] Policy List" tablePolicies = PrettyTable(["Id", "Name", "Owner", "Visibility"]) for policy in nessusConverter.nessusStructure.nessusPolicies: tablePolicies.add_row([ policy.policyId, policy.policyName, policy.policyOwner, policy.policyVisibility ]) print tablePolicies