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

Method scaninfo

pager_lib/nmap/nmap.py:625–637  ·  view source on GitHub ↗

returns scaninfo structure {'tcp': {'services': '22', 'method': 'connect'}} may raise AssertionError exception if called before scanning

(self)

Source from the content-addressed store, hash-verified

623 return self._scan_result["nmap"]["command_line"]
624
625 def scaninfo(self):
626 """
627 returns scaninfo structure
628 {'tcp': {'services': '22', 'method': 'connect'}}
629
630 may raise AssertionError exception if called before scanning
631 """
632 assert "nmap" in self._scan_result, "Do a scan before trying to get result !"
633 assert (
634 "scaninfo" in self._scan_result["nmap"]
635 ), "Do a scan before trying to get result !"
636
637 return self._scan_result["nmap"]["scaninfo"]
638
639 def scanstats(self):
640 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected