findssh
Asyncio concurrent Python finds SSH servers (or other services with open ports) on an IPv4 subnet, WITHOUT NMAP
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.4%) to scientific vocabulary
Keywords
Repository
Asyncio concurrent Python finds SSH servers (or other services with open ports) on an IPv4 subnet, WITHOUT NMAP
Basic Info
Statistics
- Stars: 38
- Watchers: 6
- Forks: 2
- Open Issues: 0
- Releases: 15
Topics
Metadata Files
README.md
Find SSH servers (without NMAP)
Platform-independently find SSH servers (or other services with open ports) on an IPv4 subnet in pure Python WITHOUT NMAP.
Scan entire IPv4 subnet in less than 1 second using Python standard library asyncio coroutines and a single thread.
The default asyncio coroutine uses a single thread and is more than 10x faster than concurrent.futures.ThreadPoolExecutor.
Although speed advantages weren't seen in our testing, findssh works with PyPy as well.
sh
pip install findssh
or from this repo:
```sh git clone https://github.com/scivision/findssh
pip install -e findssh ```
Usage
A canonical way to use FindSSH from other Python scripts is asyncio.
from command line:
sh
python -m findssh
or use project script e.g. from pipx:
sh
findssh
-scheck the string from the server to attempt to verify the correct service has been found-ttimeout per server (seconds) useful for high latency connection-bbaseip (check other subnet besides your own)-pnetwork port to scan (default 22)
Benchmark
These tests used 500 ms timeout on WiFi.
Coroutine (single thread, fast, lean, recommended):
```ipython %timeit findssh.main()
522 ms ± 1.26 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) ```
Thread pool (100 thread max, slow, heavy):
```ipython %timeit findssh.threadpool.main()
1.39 s ± 213 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) ```
Trying to open too many threads via ThreadPoolExecutor can cause a system error like
OSError: [Errno 24] Too many open files
Thus in practical terms, using coroutines can be significantly faster than threads while using less system resources.
Owner
- Login: scivision
- Kind: user
- Repositories: 353
- Profile: https://github.com/scivision
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Hirsch
given-names: Michael
orcid: https://orcid.org/0000-0002-1637-6526
title: findssh
version: 1.5.0
doi: 10.5281/zenodo.3336467
date-released: 2020-10-01
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 4
- Total pull requests: 1
- Average time to close issues: 5 months
- Average time to close pull requests: 6 days
- Total issue authors: 3
- Total pull request authors: 1
- Average comments per issue: 1.25
- Average comments per pull request: 1.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- sevku (2)
- dreuter (1)
- suprabathk (1)
Pull Request Authors
- scivision (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- pypi 210 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 19
- Total maintainers: 1
pypi.org: findssh
find open servers on IPv4 subnet such as SSH
- Documentation: https://findssh.readthedocs.io/
- License: MIT License
-
Latest release: 2.0.1
published about 2 years ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pypa/gh-action-pypi-publish release/v1 composite