• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python NessusStructure.NessusConverter类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中pynessus.rest.data.NessusStructure.NessusConverter的典型用法代码示例。如果您正苦于以下问题:Python NessusConverter类的具体用法?Python NessusConverter怎么用?Python NessusConverter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了NessusConverter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: pluginListsFamily

 def pluginListsFamily(self, familyName):
     nessusConverter = NessusConverter(self.nessusClient.pluginsListFamily(familyName))
     nessusConverter.pluginListFamilyToStructure()
     print "[*] Plugins List Family"
     tablePluginsListFamily = PrettyTable(["Plugin ID", "Plugin Name", "Plugin Family", 'Plugin FileName'])
     for pluginFamily in nessusConverter.nessusStructure.pluginsListFamily:
         tablePluginsListFamily.add_row([pluginFamily.pluginId,
                                         pluginFamily.pluginName,
                                         pluginFamily.pluginFamily,
                                         pluginFamily.pluginFileName])
     print tablePluginsListFamily
开发者ID:intfrr,项目名称:Tortazo,代码行数:11,代码来源:nessusPlugin.py


示例17: policyDownload

 def policyDownload(self, policyId, fileName):
     nessusConverter = NessusConverter(self.nessusClient.policyDownload(policyId))
     nessusConverter.policyDownloadedToStructure()
     try:
         fileDescriptor = open(fileName, "w")
         fileDescriptor.write(str(nessusConverter.nessusStructure.policyDownloaded))
         fileDescriptor.close()
         print "[+] Policy's file downloaded successfully."
     except:
         print "Unexpected error:", sys.exc_info()[0]
         print "[-] Error downloading the policy. Check the file name specified."
开发者ID:intfrr,项目名称:Tortazo,代码行数:11,代码来源:nessusPlugin.py


示例18: scanList

 def scanList(self):
     nessusConverter = NessusConverter(self.nessusClient.scanList(method="POST"))
     nessusConverter.scanListToStructure()
     print "[*] Nessus scan List."
     tableScan = PrettyTable(["Owner", "Scan Name", "Start Time", "UUID", "Readable Name", "Status", "Completion Current","Completion Total"])
     if len(nessusConverter.nessusStructure.scanList) > 0:
         for scan in nessusConverter.nessusStructure.scanList:
             tableScan.add_row([scan.owner, scan.scanName, scan.startTime, scan.uuid,
                                scan.readablename, scan.status,
                                scan.completionCurrent, scan.completionTotal])
     print tableScan
开发者ID:intfrr,项目名称:Tortazo,代码行数:11,代码来源:nessusPlugin.py


示例19: reportTags

 def reportTags(self, reportUuid, hostname):
     nessusConverter = NessusConverter(self.nessusClient.reportTags(reportUuid, hostname))
     nessusConverter.tagToNessusStructure()
     print "[*] Nessus Tags."
     tableReport = PrettyTable(["Tag Name","Tag Value"])
     if nessusConverter.nessusStructure.nessusTags is not None:
         for tag in nessusConverter.nessusStructure.nessusTags:
             tableReport.add_row([tag.name, tag.value])
     else:
         print "[*] No results."
     print tableReport
开发者ID:intfrr,项目名称:Tortazo,代码行数:11,代码来源:nessusPlugin.py


示例20: userChpasswd

    def userChpasswd(self, userName, password):
        nessusConverter = NessusConverter(self.nessusClient.usersChpasswd(userName,password))
        nessusConverter.userToStructure()

        print "[*] User Password Changed"
        tableUsers = PrettyTable(["Name", "Admin", "Idx", "Last-Login"])
        tableUsers.padding_width = 1
        tableUsers.add_row([nessusConverter.nessusStructure.nessusUser.name,
                            nessusConverter.nessusStructure.nessusUser.admin,
                            nessusConverter.nessusStructure.nessusUser.idx,
                            nessusConverter.nessusStructure.nessusUser.lastLogin])
        print tableUsers
开发者ID:intfrr,项目名称:Tortazo,代码行数:12,代码来源:nessusPlugin.py



注:本文中的pynessus.rest.data.NessusStructure.NessusConverter类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python predefined_types.PredefinedTypes类代码示例发布时间:2022-05-27
下一篇:
Python compiler.syntax函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap