Skip to content
This repository has been archived by the owner on Jan 15, 2018. It is now read-only.

A python script to automatically ping ports to check if they're open

Notifications You must be signed in to change notification settings

hedavies98/python-port-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Python Port Checker

A basic port checker written in python.

Can check either a single port or a range of ports, with a set timeout. Works by trying to open a socket on the desired port, if this fails the port is closed / is open with no application using it. Perhaps not the most elegant solution but it works.

Usage

To use run python3 portmap.py with the desired arguments. With no arguements will print help text.

List of possible parameters

Short Long Arguments Explanation
-h --help none Display this help text
-u --host hostname Supply a hostname to probe
-p --port port Specify a single port to test
-s --rangestart start port Specify the start of a port range
-e --rangeend end port Specify the end of a port range
-t --timeout timeout Specify a timeout in seconds per test

About

A python script to automatically ping ports to check if they're open

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages