當前位置: 首頁>>代碼示例>>Python>>正文


Python NessusStructure.NessusConverter類代碼示例

本文整理匯總了Python中pynessus.rest.data.NessusStructure.NessusConverter的典型用法代碼示例。如果您正苦於以下問題:Python NessusConverter類的具體用法?Python NessusConverter怎麽用?Python NessusConverter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了NessusConverter類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: pluginsAttributesFamilySearch

 def pluginsAttributesFamilySearch(self, filter0Quality, filterSearchType, filter0Value, filter0Filter):
     nessusConverter = NessusConverter(self.nessusClient.pluginsAttributesFamilySearch(filter0Quality,filterSearchType,filter0Value,filter0Filter))
     nessusConverter.pluginsAttributeFamilySearchToStructure()
     print "[*] Family Search"
     tablePluginAttributes = PrettyTable(["Family"])
     tablePluginAttributes.add_row([nessusConverter.nessusStructure.pluginsAttributeFamilySearch])
     print tablePluginAttributes
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:7,代碼來源:nessusPlugin.py

示例2: feed

    def feed(self):
        nessusConverter = NessusConverter(self.nessusClient.feed(method="POST"))
        nessusConverter.feedToStructure()

        print "[*] Basic Feed Information"
        tableBasicFeed = PrettyTable(["Feed", "Plugin Rules", "Expiration", "UI Version", "Server Version", "WebServer Version"])
        tableBasicFeed.padding_width = 1
        tableBasicFeed.add_row([nessusConverter.nessusStructure.feed.feed,
                                nessusConverter.nessusStructure.feed.pluginRules,
                                nessusConverter.nessusStructure.feed.expiration,
                                nessusConverter.nessusStructure.feed.uiVersion,
                                nessusConverter.nessusStructure.feed.serverVersion,
                                nessusConverter.nessusStructure.feed.webServerVersion])
        print tableBasicFeed
        print "\n[*] Other Information"
        tableOtherFeed = PrettyTable(["Nessus Type", "Diff","Expiration Time","Report Email", "Tags", "MSP", "Multi-Scanner","Loaded PluginSet"])
        tableOtherFeed.padding_width = 1
        tableOtherFeed.add_row([nessusConverter.nessusStructure.feed.nessusType,
                                nessusConverter.nessusStructure.feed.diff,
                                nessusConverter.nessusStructure.feed.expirationTime,
                                nessusConverter.nessusStructure.feed.reportEmail,
                                nessusConverter.nessusStructure.feed.tags,
                                nessusConverter.nessusStructure.feed.msp,
                                nessusConverter.nessusStructure.feed.multiScanner,
                                nessusConverter.nessusStructure.feed.loadedPluginSet])
        print tableOtherFeed
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:26,代碼來源:nessusPlugin.py

示例3: serverUuid

    def serverUuid(self):
        nessusConverter = NessusConverter(self.nessusClient.serverUuid())
        nessusConverter.serverUuidToStructure()

        tableUuid = PrettyTable(["UUID"])
        tableUuid.padding_width = 1
        tableUuid.add_row([nessusConverter.nessusStructure.uuid])
        print tableUuid
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例4: policyDelete

 def policyDelete(self, policyId):
     nessusConverter = NessusConverter(self.nessusClient.policyDelete(policyId))
     nessusConverter.policyDeletedToStructure()
     print "[*] Policy Deleted"
     tablePolicies = PrettyTable(["Policy Deleted"])
     for policy in nessusConverter.nessusStructure.nessusPolicies:
         tablePolicies.add_row([nessusConverter.nessusStructure.policyDeleted])
     print tablePolicies
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例5: serverSecureSettings

 def serverSecureSettings(self):
     nessusConverter = NessusConverter(self.nessusClient.securesettings())
     nessusConverter.secureSettingsListToStructure()
     print "[*] Nessus Secure Settings Updated"
     tableNessusSecureSettings = PrettyTable(["Preferences"])
     tableNessusSecureSettings.padding_width = 1
     tableNessusSecureSettings.add_row([nessusConverter.nessusStructure.secureSettings.preferences])
     print tableNessusSecureSettings
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例6: policyList

 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
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例7: pluginsMd5

 def pluginsMd5(self):
     nessusConverter = NessusConverter(self.nessusClient.pluginsMd5())
     nessusConverter.md5StructureToStructure()
     print "[*] Plugins MD5"
     tableMD5 = PrettyTable(["FileName", "MD5 Hash"])
     for md5 in nessusConverter.nessusStructure.md5Structure:
         tableMD5.add_row([md5.fileName, md5.md5])
     print tableMD5
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例8: policyPreferencesList

 def policyPreferencesList(self):
     nessusConverter = NessusConverter(self.nessusClient.policyPreferencesList())
     nessusConverter.serverPolicyPreferenceToStructure()
     print "[*] Policy Preferences List"
     tablePreference = PrettyTable(["Name", "Value"])
     for preference in nessusConverter.nessusStructure.policyPreferences:
         tablePreference.add_row([preference.name, preference.value])
     print tablePreference
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例9: policyCopy

 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
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:8,代碼來源:nessusPlugin.py

示例10: serverRegister

    def serverRegister(self, nessusCode):
        nessusConverter = NessusConverter(self.nessusClient.serverRegister(nessusCode))
        nessusConverter.serverUpdateToStructure()

        print "[*] Server Register"
        tableNessusServerRegister = PrettyTable(["Server Register"])
        tableNessusServerRegister.padding_width = 1
        tableNessusServerRegister.add_row([nessusConverter.nessusStructure.serverRegistration])
        print tableNessusServerRegister
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:9,代碼來源:nessusPlugin.py

示例11: serverUpdate

    def serverUpdate(self):
        nessusConverter = NessusConverter(self.nessusClient.serverUpdate())
        nessusConverter.serverUpdateToStructure()

        print "[*] Server Update"
        tableNessusSecureSettings = PrettyTable(["Server Update"])
        tableNessusSecureSettings.padding_width = 1
        tableNessusSecureSettings.add_row([nessusConverter.nessusStructure.serverUpdate])
        print tableNessusSecureSettings
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:9,代碼來源:nessusPlugin.py

示例12: usersList

    def usersList(self):
        nessusConverter = NessusConverter(self.nessusClient.usersList())
        nessusConverter.userToStructure()

        print "[*] User List"
        tableUsers = PrettyTable(["Name", "Admin", "Idx", "Last-Login"])
        tableUsers.padding_width = 1
        for nessusUser in nessusConverter.nessusStructure.nessusUsers:
            tableUsers.add_row([nessusUser.name,nessusUser.admin,nessusUser.idx,nessusUser.lastLogin])
        print tableUsers
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:10,代碼來源:nessusPlugin.py

示例13: pluginAttributesList

    def pluginAttributesList(self):
        nessusConverter = NessusConverter(self.nessusClient.pluginsAttributesList())
        nessusConverter.pluginsAttributesToStructure()
        print "[*] Plugins Attributes List"
        tablePluginsAttributes = PrettyTable(["Readable Name", 'Readable Regex', 'List'])
        for pluginsAttribute in nessusConverter.nessusStructure.pluginsAttributes:
            tablePluginsAttributes.add_row([pluginsAttribute.readableName, pluginsAttribute.control.readableRegex,
                                            pluginsAttribute.control.list ])

        print tablePluginsAttributes
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:10,代碼來源:nessusPlugin.py

示例14: pluginsList

    def pluginsList(self):
        nessusConverter = NessusConverter(self.nessusClient.pluginsList())
        nessusConverter.pluginsListToStructure()

        print "[*] Plugins List"
        tablePlugins = PrettyTable(["Family Member", "Family Name"])
        tablePlugins.padding_width = 1
        for nessusPlugin in nessusConverter.nessusStructure.pluginsList:
            tablePlugins.add_row([nessusPlugin.familyMembers, nessusPlugin.familyName])
        print tablePlugins
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:10,代碼來源:nessusPlugin.py

示例15: pluginsAttributesPluginSearch

 def pluginsAttributesPluginSearch(self, filter0quality, filterSearchType, filter0Value, filter0Filter, family):
     nessusConverter = NessusConverter(self.nessusClient.pluginsAttributesPluginSearch(filter0quality,filterSearchType,filter0Value,filter0Filter, family))
     nessusConverter.pluginsAttributePluginSearchToStructure()
     print "[*] Plugin Search"
     tablePluginAttributes = PrettyTable(["Family", "FileName", "Plugin ID", "Plugin Name"])
     if nessusConverter.nessusStructure.pluginsAttributePluginSearch is not None:
         tablePluginAttributes.add_row([nessusConverter.nessusStructure.pluginsAttributePluginSearch.pluginFamily,
                                    nessusConverter.nessusStructure.pluginsAttributePluginSearch.pluginFileName,
                                    nessusConverter.nessusStructure.pluginsAttributePluginSearch.pluginId,
                                    nessusConverter.nessusStructure.pluginsAttributePluginSearch.pluginName])
     print tablePluginAttributes
開發者ID:intfrr,項目名稱:Tortazo,代碼行數:11,代碼來源:nessusPlugin.py


注:本文中的pynessus.rest.data.NessusStructure.NessusConverter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。