예제 #1
0
 def match_closed_filtered(self, host, portno):
     host_ports = host.get_ports()
     return HostSearch.match_port(host_ports, portno, "closed|filtered")
예제 #2
0
 def match_open_filtered(self, host, portno):
     host_ports = host.get_ports()
     return HostSearch.match_port(host_ports, portno, "open|filtered")
예제 #3
0
 def match_open(self, host, portno):
     host_ports = host.get_ports()
     return HostSearch.match_port(host_ports, portno, "open")
예제 #4
0
 def match_closed_filtered(self, host, portno):
     host_ports = host.get_ports()
     return HostSearch.match_port(host_ports, portno, "closed|filtered")
예제 #5
0
 def match_open_filtered(self, host, portno):
     host_ports = host.get_ports()
     return HostSearch.match_port(host_ports, portno, "open|filtered")
예제 #6
0
 def match_open(self, host, portno):
     host_ports = host.get_ports()
     return HostSearch.match_port(host_ports, portno, "open")