Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stubs/python-nmap/nmap/nmap.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ class PortScanner:
self,
nmap_search_path: Iterable[str] = ("nmap", "/usr/bin/nmap", "/usr/local/bin/nmap", "/sw/bin/nmap", "/opt/local/bin/nmap"),
) -> None: ...
def get_nmap_last_output(self) -> str: ...
def get_nmap_last_output(self) -> str | bytes: ...
def nmap_version(self) -> tuple[int, int]: ...
def listscan(self, hosts: str = "127.0.0.1") -> list[str]: ...
def scan(
self, hosts: str = "127.0.0.1", ports: str | None = None, arguments: str = "-sV", sudo: bool = False, timeout: int = 0
) -> _Result: ...
def analyse_nmap_xml_scan(
self,
nmap_xml_output: str | None = None,
nmap_xml_output: str | bytes | None = None,
nmap_err: str = "",
nmap_err_keep_trace: str = "",
nmap_warn_keep_trace: str = "",
Expand Down
Loading