Skip to content

niluferirmak/Simple-port-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Simple Port Scanner

A lightweight, multithreaded port scanner built in Python. Scan a target host (IP or domain) for open TCP ports and identify known services.

🚀 Features

  • Scans a specified range of TCP ports
  • Resolves hostnames to IP addresses
  • Identifies known services for open ports
  • Multithreaded for fast scanning
  • Optional output to file

📦 Requirements

All dependencies used are part of the Python standard library (no additional packages required).

🛠️ Usage

python port_scanner.py <target> [options]

##🔧 Options

Option Description Default
-p, --ports Port range to scan (e.g. 1-1024) 1-1024
-t, --threads Number of threads to use for scanning 100
-o, --output Save results to a file None

📌 Examples

Basic scan of default ports (1-1024):

python port_scanner.py example.com

Scan ports 20 to 80 with 50 threads:

python port_scanner.py example.com -p 20-80 -t 50

Scan and save results to scan_results.txt:

python port_scanner.py 127.0.0.1 -o scan_results.txt

⚠️ Disclaimer

This tool is intended for educational and authorized use only. Scanning networks without permission is illegal and unethical.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages