MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / all_protocols

Method all_protocols

pager_lib/nmap/nmap.py:1011–1022  ·  view source on GitHub ↗

:returns: a list of all scanned protocols

(self)

Source from the content-addressed store, hash-verified

1009 return self["uptime"]
1010
1011 def all_protocols(self):
1012 """
1013 :returns: a list of all scanned protocols
1014
1015 """
1016
1017 def _proto_filter(x):
1018 return x in ["ip", "tcp", "udp", "sctp"]
1019
1020 lp = list(filter(_proto_filter, list(self.keys())))
1021 lp.sort()
1022 return lp
1023
1024 def all_tcp(self):
1025 """

Callers 1

csvMethod · 0.80

Calls 2

sortMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected