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

Method command_line

pager_lib/nmap/nmap.py:612–623  ·  view source on GitHub ↗

returns command line used for the scan may raise AssertionError exception if called before scanning

(self)

Source from the content-addressed store, hash-verified

610 return listh
611
612 def command_line(self):
613 """
614 returns command line used for the scan
615
616 may raise AssertionError exception if called before scanning
617 """
618 assert "nmap" in self._scan_result, "Do a scan before trying to get result !"
619 assert (
620 "command_line" in self._scan_result["nmap"]
621 ), "Do a scan before trying to get result !"
622
623 return self._scan_result["nmap"]["command_line"]
624
625 def scaninfo(self):
626 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected