semvec/pypi-packages huggingface dataset:
port-scanner-fokd 0.2.0
A simple port scanner to return a list of open ports. Check README for more details.  Provides a 'Scanner' class with a 'scan' function that takes a target IP address and returns a list of open ports.
Requires Python: >=3.8

# Simple port scanner

"Scan" function type signature:

```
def scan(target: str, start=0, stop=1023, threads=500) -> List[int]:
```

By default you only need to enter a target IP address and it will scan the most frequently used ports/system ports, using 500 threads (be patient 🫣).

Installation:

```
>pip install port-scanner-fokd==0.1.0
```

Usage:

```
scanner = port-scanner-fokd.Scanner()
scanner.scan("127.0.0.1")

>> [22, 80, 443]
```