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

Python factory.generateID函数代码示例

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

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



在下文中一共展示了generateID函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: createAndAddCredToService

 def createAndAddCredToService(self, host_id, service_id, username,
                               password):
     self.__addPendingAction(modelactions.CADDCREDSRV, host_id, service_id,
                             username, password)
     return factory.generateID(
         ModelObjectCred.class_signature,
         username=username, password=password, parent_id=service_id)
开发者ID:Exploit-install,项目名称:faraday,代码行数:7,代码来源:plugin.py


示例2: createAndAddServiceToInterface

 def createAndAddServiceToInterface(self, host_id, interface_id, name, protocol = "tcp?",
             ports = [], status = "running", version = "unknown", description = ""):
     self.__addPendingAction(modelactions.CADDSERVICEINT, host_id, interface_id, name, protocol,
             ports, status, version, description)
     return factory.generateID(
         Service.class_signature,
         name=name, protocol=protocol, ports=ports,
         status=status, version=version, description=description, parent_id=interface_id)
开发者ID:RaymondSchnyder,项目名称:faraday,代码行数:8,代码来源:core.py


示例3: createAndAddVulnToHost

 def createAndAddVulnToHost(self, host_id, name, desc="", ref=[],
                            severity="", resolution=""):
     self.__addPendingAction(modelactions.CADDVULNHOST, host_id, name,
                             desc, ref, severity, resolution)
     return factory.generateID(
         ModelObjectVuln.class_signature,
         name=name, desc=desc, ref=ref, severity=severity,
         resolution=resolution, parent_id=host_id)
开发者ID:Exploit-install,项目名称:faraday,代码行数:8,代码来源:plugin.py


示例4: createAndAddVulnWebToService

 def createAndAddVulnWebToService(self, host_id, service_id, name, desc="", ref=[], severity="", website="", path="", request="",
                               response="",method="",pname="", params="",query="",category=""):
     self.__addPendingAction(modelactions.CADDVULNWEBSRV, host_id, service_id, name, desc, ref, severity, website, path, request, response,
             method,pname, params,query,category)
     return factory.generateID(
         ModelObjectVulnWeb.class_signature,
         name=name, desc=desc, ref=ref, severity=severity,
         website=website, path=path, request=request, response=response,
         method=method, pname=pname, params=params, query=query,
         category=category, parent_id=service_id)
开发者ID:BwRy,项目名称:faraday,代码行数:10,代码来源:core.py


示例5: createAndAddInterface

 def createAndAddInterface(self, host_id, name = "", mac = "00:00:00:00:00:00",
              ipv4_address = "0.0.0.0", ipv4_mask = "0.0.0.0",
              ipv4_gateway = "0.0.0.0", ipv4_dns = [],
              ipv6_address = "0000:0000:0000:0000:0000:0000:0000:0000", ipv6_prefix = "00",
              ipv6_gateway = "0000:0000:0000:0000:0000:0000:0000:0000", ipv6_dns = [],
              network_segment = "", hostname_resolution = []):
     self.__addPendingAction(modelactions.CADDINTERFACE, host_id, name, mac, ipv4_address,
         ipv4_mask, ipv4_gateway, ipv4_dns, ipv6_address, ipv6_prefix, ipv6_gateway, ipv6_dns,
         network_segment, hostname_resolution)
     return factory.generateID(
         Interface.class_signature, parent_id=host_id, name=name, mac=mac,
         ipv4_address=ipv4_address, ipv4_mask=ipv4_mask,
         ipv4_gateway=ipv4_gateway, ipv4_dns=ipv4_dns,
         ipv6_address=ipv6_address, ipv6_prefix=ipv6_prefix,
         ipv6_gateway=ipv6_gateway, ipv6_dns=ipv6_dns,
         network_segment=network_segment,
         hostname_resolution=hostname_resolution)
开发者ID:RaymondSchnyder,项目名称:faraday,代码行数:17,代码来源:core.py


示例6: createAndAddNoteToNote

 def createAndAddNoteToNote(self, host_id, service_id, note_id, name, text):
     self.__addPendingAction(modelactions.CADDNOTENOTE, host_id, service_id, note_id, name, text)
     return factory.generateID(
         ModelObjectNote.class_signature,
         name=name, text=text, parent_id=note_id)
开发者ID:RaymondSchnyder,项目名称:faraday,代码行数:5,代码来源:core.py


示例7: createAndAddHost

 def createAndAddHost(self, name, os = "unknown", category = None, update = False, old_hostname = None):
     self.__addPendingAction(modelactions.CADDHOST, name, os, category, update, old_hostname)
     return factory.generateID(Host.class_signature, name=name, os=os)
开发者ID:RaymondSchnyder,项目名称:faraday,代码行数:3,代码来源:core.py


示例8: createAndAddVulnToService

 def createAndAddVulnToService(self, host_id, service_id, name, desc="", ref=[], severity=""):
     self.__addPendingAction(modelactions.CADDVULNSRV, host_id, service_id, name, desc, ref, severity)
     return factory.generateID(
         ModelObjectVuln.class_signature,
         name=name, desc=desc, ref=ref, severity=severity,
         parent_id=service_id)
开发者ID:BwRy,项目名称:faraday,代码行数:6,代码来源:core.py



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Python database.Database类代码示例发布时间:2022-05-27
下一篇:
Python api.devlog函数代码示例发布时间: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