Skip to content

Thassanai546/Port-Hound

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python-Port-Sniffer

porthound-banner

[-] = Closed Port
[+] = Open Port

Description

Python port scanner built using Socket. This program also features Typer which allows users to pass in parameters in the CLI. Users may scan for a specific port or a range of ports. Socket will automatically convert hostnames like example.com to their IP addresses.

The time taken after each scan is printed and closed ports will show up in red during output while open ports will show up in green.

Installation

This script uses the following imports:

  • click==8.0.3
  • colorama==0.4.4
  • typer==0.4.0

Usage

  • After downloading the script, you can run it in command prompt by typing portscanner.py. This will present you with a help page.
  • Under Commands: you will see a list of available options. --help can be appended to any of these.
  • Example portscanner.py scanrange --help will show you how to scan a range of hosts, presenting the output below:
  • You may pass in a text file (.txt) with a list of ports to scan using scanlist.

Only ever port scan website that you have permission to scan.

image

Example Syntax

  • Use a list of ports and scan loopback address > porthound.py scanlist 127.0.0.1 common_ports.txt
  • Scan ports 60 to 100 on loopback address > porthound.py scanrange 127.0.0.1 60 100

About

Python port sniffer built with socket 🐺

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages