returns scaninfo structure {'tcp': {'services': '22', 'method': 'connect'}} may raise AssertionError exception if called before scanning
(self)
| 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected