Skip to main content

A CLI tool for network port scanning

Project description

PyScan Tool

pyscan-tool is a Python-based port scanning utility that allows users to scan for open ports on a specified IP address. It provides options for scanning TCP and UDP ports, identifying services associated with each open port, and offering a command-line interface for ease of use.

Features

  • Command-Line Interface (CLI): The default interface for scanning ports directly from the terminal.
  • Service Name Identification: Automatically identifies and displays the service associated with each open port.
  • TCP and UDP Scanning: Options to scan for both TCP and UDP ports.
  • Configurable Timeout: Users can specify the timeout duration for connection attempts.

Installation

Option 1: Install from PyPI

To install pyscan-tool directly from PyPI:

pip install pyscan-tool

Option 2: Build from Source

For those who prefer to build it themselves:

  1. Clone the repository and navigate to the project directory:

    git clone https://github.com/h471x/port_scanner.git
    cd port_scanner
    
  2. Build the package:

    python setup.py sdist bdist_wheel
    
  3. Install the package:

    pip install dist/*.whl
    

Usage

Once the package is installed, you can use the pyscan command from the terminal. The script accepts the following command-line arguments:

  • IP Address:

    • -ip or --ip-address: Specify the IP address to scan.
  • Port Range:

    • -r or --range: Specify the port range to scan (e.g., 80-443).
  • Protocol:

    • -p or --protocol: Specify the protocol to use (tcp or udp). Default is tcp.
  • Timeout:

    • -t or --timeout: Specify the timeout duration in seconds. Default is 1.0.

Example Usage

  1. Basic Scan:

    pyscan -ip <ip_address> -r 80-443
    
  2. Specify Protocol and Timeout:

    pyscan -ip <ip_address> -r 1-100 -p udp -t 2
    
  3. Help Option: For help with command-line options, use:

    pyscan -h
    

Development

To modify or extend the functionality, ensure you have the required dependencies installed. You can add new features to the CLI as needed.

Contributing

Feel free to fork this repository, open issues, or submit pull requests with improvements or bug fixes. Your contributions help make the PyScan Tool better!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyscan-tool-0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

pyscan_tool-0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyscan-tool-0.1.tar.gz.

File metadata

  • Download URL: pyscan-tool-0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.7

File hashes

Hashes for pyscan-tool-0.1.tar.gz
Algorithm Hash digest
SHA256 c4bc6bab790d85a7e186fe63368175a682a394b89220d5a1005f1a3c7a10dd57
MD5 3e4ca94175f9e4e582d3a04fd4319810
BLAKE2b-256 1640dae6a110f1b8ee90f36dc413370a73330d2a0d95777a40206e813a5f936f

See more details on using hashes here.

File details

Details for the file pyscan_tool-0.1-py3-none-any.whl.

File metadata

  • Download URL: pyscan_tool-0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.7

File hashes

Hashes for pyscan_tool-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3d7dc434f217f12d80af4a5d4c0f3f3fa4040325c711c8c97e6be518e7b881
MD5 70d96d7b8ee6ecfd7a47b27c02d0a4b1
BLAKE2b-256 62935a420930d32faf6221072c0f3a82cab0be6c5b350f6fbb2dcfc1d685e2f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page