Skip to main content

Ports quiz

Project description

PQuiz

pip install pquiz

usage: pquiz [-h] [-b [1-65536]] [-e [1-65536]] [--all] -p PORT [PORT ...]
             [-m {pretty,printable}] [-t TIMEOUT]

A simple utility to check what ports are available for outgoing tcp connection
(ports 22 and 25 are not testable). Gianluca Caronte 2019-2022 (c)

optional arguments:
  -h, --help            show this help message and exit
  -b [1-65536], --range-begin [1-65536]
                        the begin of the ports range
  -e [1-65536], --range-end [1-65536]
                        the end of the ports range
  --all                 test all the ports
  -p PORT [PORT ...], --port PORT [PORT ...]
                        the port(s) to test
  -m {pretty,printable}, --print-mode {pretty,printable}
  -t TIMEOUT, --timeout TIMEOUT
                        timeout in seconds

Examples

Testing ports from 79 to 83:

> python -m pquiz -b 79 -e 83
79      KO
80      OK
81      KO
82      KO
83      KO

Testing ports from 79,80 and 83:

> python -m pquiz -p 79 80 83
79      KO
80      OK
83      KO

Testing ports from 79 to 83, with printable output:

> python -m pquiz -b 79 -e 83 -m printable
80

Testing ports from 79 to 83, with a half second timeout:

> pquiz -b 79 -e 83 -t 0.5
79      KO
80      OK
81      KO
82      KO
83      KO

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

pquiz-1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

pquiz-1.0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pquiz-1.0.tar.gz.

File metadata

  • Download URL: pquiz-1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for pquiz-1.0.tar.gz
Algorithm Hash digest
SHA256 fa98bf1d249e0f23883105b22c02fb814133539de20df31c00bc22b3c61e415c
MD5 673107ddb449af1c64a822f310eb41c4
BLAKE2b-256 eac0c6131420d75678ef295c724e51087fe774d0b8253d89e6c682d5bb4567de

See more details on using hashes here.

File details

Details for the file pquiz-1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pquiz-1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.21.0

File hashes

Hashes for pquiz-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d1f16a2c45cac87a7793aa86f6bdf3f0067a108a63a91074f7859c6aa3b121af
MD5 e60954e6c6103954305b15b09630e454
BLAKE2b-256 932ae514327ad43e1019409044755033af5816136da8c6f42a215c6e3c3d29e5

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