Skip to main content

IPv4 address scanner for collecting address information.Scan or get the IPv4 address from the IPv6 host

Project description

🐍 SnakeScan: A Robust Python Port Scanner

A versatile and efficient Python library designed for comprehensive network port scanning.

PyPI

MIT License

Python 3.7+

Status: Beta

SnakeScan provides a flexible and powerful solution for network administrators, security professionals, and developers requiring reliable port scanning capabilities. From basic port verification to advanced, multi-threaded subnet analysis, SnakeScan delivers the tools necessary for effective network assessment.

⚙️ Key Features:

  • Flexible Port Specification: Define target ports as single values, ranges, or through pre-configured sets.

  • Multi-Threaded Architecture: Accelerate scanning operations with parallel processing for rapid analysis.

  • IP Information Retrieval: Obtain detailed information about target IP addresses, supporting both IPv4 and IPv6.

  • Real-time Port Monitoring: Utilize the Watcher class for continuous monitoring of critical port statuses.

  • Concise Command-Line Interface & API: Integrate SnakeScan seamlessly into workflows via CLI or programmatic access.

  • UDP Port Scanning: Native support for scanning UDP ports.

⬇️ Installation:

Install SnakeScan using pip:

bash

pip install SnakeScan

⌨️ Command Line Usage:

💡 Attribute Reference:

  • -p: Specify target ports for scanning (single port or range). Note: Range specifications exclude the lower bound on the first entry. Example: To scan from port 80 to 443, define the range as 79-443. Examples: snake -p 80,443 or snake -p 80,3437,8080,20-30,79-443

  • -u: Enable UDP port scanning. Example: snake -p 53 -u

  • -h: Display the complete list of available command-line attributes and their descriptions. Example: snake -h or snake -help

  • -sp: Initiate a scan using a predefined set of common ports with ProcessPoolExecutor. Example: snake -sp

  • -v: Display the current version of the SnakeScan library. Example: snake -v

  • -gs: Retrieve the SSL/TLS certificate from a specified web server. Example: snake www.google.com -gs (Requires a valid hostname to avoid connection errors.)

  • -t: Enable multi-threading for enhanced scan performance. Example: snake -t

  • -ch: Scan a subnet to discover active IP addresses on the network. Example: snake -ch

  • -l: Display your public IP address (requires an active internet connection). Example: snake -l

  • -i: Show detailed information about a specific IP address (supports both IPv4 and IPv6). Example: snake www.google.com -i

💻 Python Code Integration:

⏱️ Watcher Class: Real-Time Port Status

The Watcher class facilitates continuous monitoring of a specified port.

python

from SnakeScan import Watcher

watcher = Watcher("localhost", 53, 2) # Host, port, check interval (in seconds)

watcher.start() # Begin monitoring!

Watcher Methods:

  • Watcher.start() - Initiate the port monitoring process.

  • Watcher.stop() - Terminate the port monitoring process.


Latest Update: 1.7.6 (Introduced UDP port scanning)

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

snakescan-1.7.6.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

snakescan-1.7.6-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file snakescan-1.7.6.tar.gz.

File metadata

  • Download URL: snakescan-1.7.6.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for snakescan-1.7.6.tar.gz
Algorithm Hash digest
SHA256 888f589f4a2e30db32d327070695f8d4d09eae5bc2a401013e60e34061d62b8c
MD5 ef5e1ebeaa47de02150853926894b368
BLAKE2b-256 79dd385f743943427a9697f9f7cf37447f40dcc7a5d17ea91a91e3d8a71913b0

See more details on using hashes here.

File details

Details for the file snakescan-1.7.6-py3-none-any.whl.

File metadata

  • Download URL: snakescan-1.7.6-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.5

File hashes

Hashes for snakescan-1.7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 431334154100320f51e222b01f884c323bcebd30d6fcb4cf8a2f520ba5af0229
MD5 f9efd3aaf2722f99c723fb3f7da7f0d2
BLAKE2b-256 ebee2e5d239671dcdcf1e81c905fa8d831716575cbb099cf3452522c5838260d

See more details on using hashes here.

Supported by

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