Skip to main content

DiscoNet Package

DiscoNet scans specified subnets and IPs for SSH servers that can be accessed with the provided credentials and executes an arbitrary list of commands.

The process of scanning networks and collecting command output is built on a multiprocess architecture, so DiscoNet can rapidly scan through management and loopback subnets, populating an xlsx workbook with the output.

Installation

Install DiscoNet using the latest version of setuptools and pip:

$ pip install --upgrade setuptools pip
$ pip install DiscoNet

You can also opt to install the DiscoNet GUI which uses to Kivy library. To install it, you will first need to follow the Kivy Installation Instructions for your platform. Then install DiscoNet with the GUI marker:

$ pip install DiscoNet[kivy]

Binary distributions for OS X and Windows are available here.

Usage

The GUI and command line application take several input parameters:
  • workbook: Path to output xlsx file

  • subnets: Comma delimited list of networks and IP addresses to scan

  • username: SSH username

  • password: SSH password

  • commands: One per line in the GUI or passed as parameters from the command line

Examples:

To open the GUI application:

$ python -m DiscoNet

To scan and create a discovery workbook from the command line:

$ python -m DiscoNet.discoveryscan workbook subnets username password commands

A convenience script is included so that the GUI and command line utility can each be run using the following commands accordingly:

$ DiscoNet
$ discoveryscan workbook subnets username password commands ...

Use double quotes for each command and include as many as required, e.g.:

$ discoveryscan out.xlsx 172.16.0.0/24 admin password "show ver" "show run"

API

To use the module in your own projects, please reference the API Documentation.

Examples:

Initiate a discovery scan from python:

from DiscoNet.discoveryscan import DiscoveryScan

d = DiscoveryScan(workbook, subnets, username, password, [commands, ...])
d.start()

The commands parameter should be a list of command strings. The start method will block until the scan is complete. Optionally, the start method can be non-blocking when supplied with a callback function:

from DiscoNet.discoveryscan import DiscoveryScan

def cb()
    #callback function
    return

d = DiscoveryScan(workbook, subnets, username, password, [commands, ...])
d.start(cb)

Metadata

Release files for DiscoNet 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for DiscoNet 0.3.0
File Size Uploaded Provenance Actions
DiscoNet-0.3.0.tar.gz 779.4 kB Without provenance Details for DiscoNet-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for DiscoNet 0.3.0
File Interpreter ABI Platform Actions
DiscoNet-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for DiscoNet-0.3.0-py2.py3-none-any.whl

Total release size: 1.6 MB

Release files / DiscoNet-0.3.0.tar.gz

Download URL DiscoNet-0.3.0.tar.gz
Size 779.4 kB
Tags Source
SHA-256 checksum
How to use checksums
24f7e94872d3a2b816b38fbc5dd07ec652f1bb1cc4623c2b226f78063635d77c
BLAKE2b-256 checksum
How to use checksums
086a207711f2cf1f4e82b9d5efe6b175474a1246123f552365a302ebc6a17216
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / DiscoNet-0.3.0-py2.py3-none-any.whl

Download URL DiscoNet-0.3.0-py2.py3-none-any.whl
Size 782.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
cfb36d1fe732f18b4354ffa87f6bb7a266a6b0d2947a9c4a92fb7d5fbddd8f36
BLAKE2b-256 checksum
How to use checksums
274e676783ff1ae2246f01568390c68efc66addbd044eb6633458546f0a84fdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for DiscoNet 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page