Skip to content

A simple Python script to scan ports on a target machine

Notifications You must be signed in to change notification settings

tetteis/port-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Port Scanner 🔍

This is a simple Python script to scan ports on a target machine.

👩‍🏫 Usage

python3 scanner.py <ip>

Replace with the IP address of the target machine.

📝 Description

  • This script takes an IP address as an argument and scans a range of ports (50 to 84) on that target machine.
  • It prints a message indicating whether each port in the range is open or closed.
  • It also handles errors gracefully, such as incorrect syntax, hostname resolution failure, and socket errors.

⚠️ Warning

Do not use this tool to scan unauthorized target machines without proper authorization. Unauthorized scanning of machines or networks may be illegal and could result in legal action. Usage of this tool to scan target machines is at the user's discretion and responsibility.

📌 Requirements

  • Python 3.x

📃 License

Licensed under the MIT License, Copyright © 2024

About

A simple Python script to scan ports on a target machine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages