示例#1
0
 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
示例#2
0
 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
示例#3
0
 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
示例#4
0
 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