Skip to main content

PortScan

PyPi Project: beard-portscan

PyPI   PyPI - Python Version   PyPI - License

  • 0.1.0: Initial Release after Fork
    • Outputs a list of dicts

Install: pip install beard-portscan

Upgrade: pip install beard-portscan --upgrade

Usage: portscan [192.168.1.0/24] [-p 22,80-200 [-t 100 [-w 1 [-e]]]]

Forked from Aperocky/PortScan

All Information below this line is from the original REPO.

PortScan is a light-weight command line utility that allows user to conduct scanning over a range of IP addresses and port ranges with multi-threading.

New in version 0.2.1:

Simple Command

By default the command checks for your Local Area Network IP first, and then initiate a block wise search. specify IP if you want to search any other IP blocks. Note: This is not available before 0.2.1, please update or specify IP if you're using 0.2.0 and older

Use -w [float] to change timeout settings from default of 3 seconds: for LAN, this can be as low as 0.1. 1 is usually good enough for continental level connection.

Fast scanning Scanned 5000 ports in 2 seconds

To show more potential connection, use -e, this will show you all ports that are not timed out.

Show more potential connection

Arguments

ip: default and optional (since 0.2.1, required before 0.2.1) argument, can parse single IP, list of IP, IP blocks:

192.168.1.0 # single IP

192.168.1.0/24 # A 24 block, from 192.168.1.0 to 192.168.1.255

[192.168.1.0/24,8.8.8.8] # The aforementioned 24 block and 8.8.8.8.

"[192.168.1.0/24, 8.8.8.8]" # if you want to use space in the command, wrap in quotes.

Options:

-p, --port: port range, default 22,23,80, use , as a delimiter without space, support port range (e.g. 22-100,5000).

-t, --threadnum: thread numbers, default 500, as of now, thread number have a hard cap of 2048. More thread will increase performance on large scale scans.

-e, --show_refused: show connection errors other than timeouts, e.g. connection refused, permission denied with errno number as they happen.

-w, --wait: Wait time for socket to respond. If scanning LAN or relatively fast internet connection, this can be set to 1 or even 0.2 for faster scanning. Default 3 seconds

Acknowledgement

Jamieson Becker: For coming up with a way to find local IP on stackoverflow, which I used: https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib

Metadata

Release files for beard-portscan 0.1.5

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

Source distribution (sdist)

Source distribution for beard-portscan 0.1.5
File Size Uploaded
beard-portscan-0.1.5.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for beard-portscan 0.1.5
File Interpreter ABI Platform
beard_portscan-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / beard-portscan-0.1.5.tar.gz

Download URL beard-portscan-0.1.5.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1e04900cd0e78907b33580e807b9f556a28223725a99934e610e9dfcd9d9bec9
BLAKE2b-256 checksum
How to use checksums
28588f1c0da10b0ac8b79ef04459944f424b53c890862bbf64e149633dda9251
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / beard_portscan-0.1.5-py3-none-any.whl

Download URL beard_portscan-0.1.5-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b0b3a490f99975ae2f2867ce30c8f37a463a113c81a9cda77c0279199ed39ef
BLAKE2b-256 checksum
How to use checksums
103dbd64736b96ff3abcf7e5b80bae654f5f0b27bc44fd0bcbf73add87afa21a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.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