Skip to main content

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.

Contents

Features | Installation | Build from scratch | Usage | Development | Contributing

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!

Release files for pyscan-tool 0.1.1

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

Source distribution (sdist)

Source distribution for pyscan-tool 0.1.1
File Size Uploaded
pyscan-tool-0.1.1.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscan-tool 0.1.1
File Interpreter ABI Platform
pyscan_tool-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / pyscan-tool-0.1.1.tar.gz

Download URL pyscan-tool-0.1.1.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e1bff678ccdaaed281a716591f78463b510a733c5348fe34c88893eac5cbe6
BLAKE2b-256 checksum
How to use checksums
73f8cdf9bc62482b51d60d7a21c1d17e5a569febe8cfe06a5fab7fbb36312139
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / pyscan_tool-0.1.1-py3-none-any.whl

Download URL pyscan_tool-0.1.1-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a47fe201aa79ac49ecf749c33355327568ca6f2dff509f1ec179470d70ae19dd
BLAKE2b-256 checksum
How to use checksums
e1ca4642a35cf2626af1a49d678abd8bed1483136abc907d1fa414b613d697df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1

2 release files

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