This is an API adaption to the Original RustScan, which extends it's functionality for use as a native Python module e.g. Extension Module.
Reason this release was yanked:
Not Functional, Use 1.0.3
Project description
netscan
This is an API adaption to the Original RustScan, which extends it's functionality for use as a native Python module e.g. Extension Module.
All Credits go to the original Authors which can be found here: https://github.com/RustScan/RustScan
As of this commit, the Wheels distribution is built via RustScan version: 2.1.0 Release.
How to Use.
Using the module is simple. Simply install the dependency via pip.
The default Batch Size is set to 10. The batch size is essentially the number of concurrent ports to check at a time e.g. check 10 ports at a time.
The default timeout (time to wait for a TCP timeout) is 1.5 seconds (1500 miliseconds).
Note that these are extremley conservative defaults and hence lead to low performance. To increase the performance for you're environment tweak these by setting the environment variables.
Here is a final example of how to use the NetScan extension module:
>>> import os, netscan
>>> # Sets the concurrent number of ports to check at a time to 1500!
>>> os.environ["SCAN_BATCH_SIZE"] = "1500"
>>> # Sets the TCP Timeout to 0.5 seconds
>>> os.environ["SCAN_TIMEOUT"] = "500"
>>> netscan.run_scan(["10.0.0.1","10.0.0.28"])
>>> ['10.0.0.1:53', '10.0.0.1:80', '10.0.0.28:135', '10.0.0.28:139', '10.0.0.28:445', '10.0.0.1:443', '10.0.0.28:3389', '10.0.0.28:7680', '10.0.0.1:8080', '10.0.0.1:8181', '10.0.0.1:21515', '10.0.0.28:27036', '10.0.0.1:49152', '10.0.0.1:49153', '10.0.0.1:49154', '10.0.0.28:49670', '10.0.0.28:57621']
>>> exit()
Cheers!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for netscan_TD4B-1.0.0-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad47af6ad77bc187bfc372c15ead579c1148f059a65728c31426a10913a3dc78 |
|
MD5 | 46be926b179e378e1dd54e9c790eeced |
|
BLAKE2b-256 | dbe7ad5deba09c15774cea3e1c9322288f4b347907420d339368e321939b6a2a |
Hashes for netscan_TD4B-1.0.0-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bf36598579a8dd42723a8013c6c895fa9b5731dc522971ec1cfbce22cc06685 |
|
MD5 | 3482afe58eb6512d5839c807afb97484 |
|
BLAKE2b-256 | 172a3b2b0a107edf075edbeb3a989ad4df8f42b62b83f6b6b68c1971708a1de9 |
Hashes for netscan_TD4B-1.0.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5f64591fda9e5abd0b083a5f8ecb85a3410cedd00a880949a02b9e5959a18f5 |
|
MD5 | 23146e3dfbaa1cbadb42a043c4e83d6f |
|
BLAKE2b-256 | cd4b16d6e243f13be4fe371b40c72cf3e0ebf6e3071cecffd097ea828abd9368 |
Hashes for netscan_TD4B-1.0.0-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d40521229a4418a7d66fd39fa7e5dd66d2e55bd7aaddba0b35a4f7f7fba2b579 |
|
MD5 | c01f0b45621afe9d25205bcdbb7c93f0 |
|
BLAKE2b-256 | 1523401e957733668944d709e3ddd45ae19b66bd7dede9c703d802c963c80dce |
Hashes for netscan_TD4B-1.0.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89399309fe0ad046e6f63417b15bf3bf1954a80080b1f3e9ad79bdcab7bac153 |
|
MD5 | 5d24c2cf0d0ca285c813c58fe34efdd8 |
|
BLAKE2b-256 | 7a3ec83ba8446a57f9856e6085fb9a7181d6f5d7a364bef35f3aa405cb7196ba |
Hashes for netscan_TD4B-1.0.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 595cf69a7d48d98135461619fba8dc36020cda585f0c1ffa9262d70cb839d6cf |
|
MD5 | d2f7c8aebb6954b5b0104ab1dc0bb536 |
|
BLAKE2b-256 | ebf77817a4e3ef140f1d3379ab7d642efd2890c909cc1b4456cf54824a808681 |
Hashes for netscan_TD4B-1.0.0-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cc3707961e7cf26eb5d68f685ee222db468db7ad258d70938203a44fedad77f |
|
MD5 | fa63bbe07dc140ab55616e39902c270d |
|
BLAKE2b-256 | c75aa3cb5ae7851e5de5450c979cef4102e1e5eeab3904613fc69a55df301ec2 |
Hashes for netscan_TD4B-1.0.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24271d58f137fd6c0226cce4f9e66a39b07ec085ab90404929b93c16448ee5b7 |
|
MD5 | e0f81ca68c3f29fa68d3d1889404d77f |
|
BLAKE2b-256 | 47491fb75a45ebc8863fdb3203bd593583b14ec783716c9484926be6002bc04d |
Hashes for netscan_TD4B-1.0.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeb07a054ad1d5fc4a348f9a91b8f971836929758b3fb73c20f65a55d927698d |
|
MD5 | 248ddb0d533585a520b31f64c3409cb7 |
|
BLAKE2b-256 | f208e3128b7c9d7ab722a27e797188f366c2e02df40fce34041ba04216876b3a |
Hashes for netscan_TD4B-1.0.0-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94c935ac104b151de4b263220798dfb5b8478d6db5ef710c7494779d92a9c8f1 |
|
MD5 | ce35da2b5e21cb623450f651277ce535 |
|
BLAKE2b-256 | 98e77a8b23e66cc2b460384c7ffb450748ed17ceb3a169e578284b1a815f6f03 |
Hashes for netscan_TD4B-1.0.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f2dbb3b7597dd3175a94b319bec673a49bfed4afd11353f26107466fb7b4d3 |
|
MD5 | 3a96154bfe0458bf6301be2289d86030 |
|
BLAKE2b-256 | 82d134bcfad6edeb493aef861851022d687e7f0d2b60a227930f475af60980ae |
Hashes for netscan_TD4B-1.0.0-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59d303876172b9cfcc4fd43779d60456ed05bdcd6cb3ef074a2cd07cf27d5fd1 |
|
MD5 | f251e61f9a36e19267d12e1d2a4ae095 |
|
BLAKE2b-256 | c3aa05c4f70810933010f5d4566fd64acddbf5ed4ab21441e2c4c57a3962fb2d |
Hashes for netscan_TD4B-1.0.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c0ccb627b2ced766ea90cb0abe1c0066c3ac972e1614f3c394c760ddab8e42 |
|
MD5 | 9045f2ab8bbae4186187655e8465a7cd |
|
BLAKE2b-256 | 1848caa5a860a8d63f0092b334cce0ba4b469ddee881d2d5addbe15a78dbc3bb |
Hashes for netscan_TD4B-1.0.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7815f734d67a22c19c196ef8ff4293817223d110f80d745c65089d2009d6c820 |
|
MD5 | 22da7d51392860f2d429735ff452c93f |
|
BLAKE2b-256 | 233fc7dd7075a6d75f6b3db51dcf81ce8583bb62b4ce1c69659a1b6031a2f596 |