returns command line used for the scan may raise AssertionError exception if called before scanning
(self)
| 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected