Project to scan and gather connectivity information on small networks
Project description
network_scanner_kbk
Project to impliment a network scanner for comparing subnets
Example Usage
Example of using the network_scanner utility to scan 2 given subnets and look for devices that can only be accessed through exactly one of the subnets.
# Import the NetworkScanner class
from network_scanner_kbk import NetworkScanner
# Create an instance of the NetworkScanner class
ns = NetworkScanner()
# Provide 2 subnet addresses in CIDR /24 notation
subnet1 = "192.168.0.0/24"
subnet2 = "192.168.1.0/24"
# Call find_singularly_reachable_devices() to obtain the list of devices (ips)
devices = ns.find_singularly_reachable_devices(subnet1, subnet2)
print("List of devices accessible on exactly one subnet:")
for d in devices:
print(d)
This package comes with unit tests. They can be run as follows:
cd network_scanner_kbk/tests
python test_network_scanner.py
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 Distribution
Built Distribution
Close
Hashes for network_scanner_kbk-0.0.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddf96abaf4eaf93be0e548fb1cf7a93ff661a19bd304670ba2d1789faabb06d9 |
|
MD5 | 09909a29c6e6b7ebc94647aee89e3c8b |
|
BLAKE2b-256 | 3c25c8863e76edc8cc924899c7b668ca894778a95daf635e6156bd7b880ff126 |
Close
Hashes for network_scanner_kbk-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf447752cad25bb880361ee64170c5f74d59ee9ee2439a06715d88008453e2df |
|
MD5 | f05d7fb60facf506e93154c3e8ce7429 |
|
BLAKE2b-256 | 73281320ec7a6e057f4ac76649daea18b9a83f74af5eebe47262ddc694e325b0 |