本文整理汇总了Python中SearchResult.HostSearch类的典型用法代码示例。如果您正苦于以下问题:Python HostSearch类的具体用法?Python HostSearch怎么用?Python HostSearch使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了HostSearch类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: match_open_filtered
def match_open_filtered(self, host, portno):
host_ports = host.get_ports()
return HostSearch.match_port(host_ports, portno, "open|filtered")
示例2: match_closed_filtered
def match_closed_filtered(self, host, portno):
host_ports = host.get_ports()
return HostSearch.match_port(host_ports, portno, "closed|filtered")
示例3: match_open
def match_open(self, host, portno):
host_ports = host.get_ports()
return HostSearch.match_port(host_ports, portno, "open")
示例4: match_os
def match_os(self, host, os):
return HostSearch.match_os(host, os)
示例5: match_service
def match_service(self, host, service):
return HostSearch.match_service(host, service)
示例6: match_hostname
def match_hostname(self, host, hostname):
return HostSearch.match_hostname(host, hostname)
示例7: match_target
def match_target(self, host, name):
return HostSearch.match_target(host, name)