A lightweight, fast, and extensible TCP port scanner written in Python.
pip install mini-scanner
Or install from source:
git clone https://github.com/Rohit30Confluence/mini-scanner.git
cd mini-scanner
pip install -e .
Scan common ports:
mini-scanner example.com
Scan specific ports:
mini-scanner example.com --ports 22,80,443
Save results:
mini-scanner example.com --output results.json --format json
from mini_scanner import Scanner
scanner = Scanner()
results = scanner.scan(
host="scanme.nmap.org",
ports=[22,80,443],
)
for result in results:
print(result)
mini-scanner/
├── mini_scanner/
├── tests/
├── docs/
├── .github/
├── Dockerfile
├── docker-compose.yml
├── pyproject.toml
└── README.md
Run tests:
pytest
Run formatting:
make format
Run linting:
make lint
Run all quality checks:
make check
Contributions are welcome.
Please read the Contributing Guide before opening an issue or pull request.
This project is licensed under the MIT License.
See the LICENSE file for details.