Rename nmap to python-nmap (#5931)

This commit is contained in:
Marc Mueller
2021-08-17 01:44:04 +02:00
committed by GitHub
parent 3ce5502675
commit 837b57fdd1
4 changed files with 9 additions and 16 deletions

View File

@@ -1,12 +0,0 @@
nmap.PortScanner
nmap.PortScannerAsync
nmap.PortScannerError
nmap.PortScannerHostDict
nmap.PortScannerYield
nmap.convert_nmap_output_to_encoding
nmap.nmap.PortScanner
nmap.nmap.PortScannerAsync
nmap.nmap.PortScannerError
nmap.nmap.PortScannerHostDict
nmap.nmap.PortScannerYield
nmap.nmap.convert_nmap_output_to_encoding

View File

@@ -1,3 +1,3 @@
version = "0.1"
version = "0.6"
python2 = true
requires = []

View File

@@ -54,7 +54,9 @@ class PortScanner(object):
def get_nmap_last_output(self) -> Text: ...
def nmap_version(self) -> Tuple[int, int]: ...
def listscan(self, hosts: str = ...) -> list[str]: ...
def scan(self, hosts: Text = ..., ports: Text | None = ..., arguments: Text = ..., sudo: bool = ...) -> _Result: ...
def scan(
self, hosts: Text = ..., ports: Text | None = ..., arguments: Text = ..., sudo: bool = ..., timeout: int = ...
) -> _Result: ...
def analyse_nmap_xml_scan(
self,
nmap_xml_output: str | None = ...,
@@ -71,7 +73,7 @@ class PortScanner(object):
def csv(self) -> str: ...
def __scan_progressive__(
self: object, hosts: Text, ports: Text, arguments: Text, callback: _Callback | None, sudo: bool
self: object, hosts: Text, ports: Text, arguments: Text, callback: _Callback | None, sudo: bool, timeout: int
) -> None: ...
class PortScannerAsync(object):
@@ -84,6 +86,7 @@ class PortScannerAsync(object):
arguments: Text = ...,
callback: _Callback | None = ...,
sudo: bool = ...,
timeout: int = ...,
) -> None: ...
def stop(self) -> None: ...
def wait(self, timeout: int | None = ...) -> None: ...
@@ -92,7 +95,7 @@ class PortScannerAsync(object):
class PortScannerYield(PortScannerAsync):
def __init__(self) -> None: ...
def scan( # type: ignore
self, hosts: str = ..., ports: str | None = ..., arguments: str = ..., sudo: bool = ...
self, hosts: str = ..., ports: str | None = ..., arguments: str = ..., sudo: bool = ..., timeout: int = ...
) -> Iterator[Tuple[str, _Result]]: ...
def stop(self) -> None: ...
def wait(self, timeout: int | None = ...) -> None: ...
@@ -121,4 +124,6 @@ class PortScannerError(Exception):
value: str
def __init__(self, value: str) -> None: ...
class PortScannerTimeout(PortScannerError): ...
def convert_nmap_output_to_encoding(value: _T, code: str = ...) -> _T: ...