vivekchouhan01/port-scanner
GitHub: vivekchouhan01/port-scanner
一个用Python编写的简易TCP端口扫描器,通过向目标IP发起连接探测来识别开放的端口。
Stars: 0 | Forks: 0
```
# 🔎 Python 端口扫描器
A simple TCP Port Scanner written in Python that scans one or multiple target IP addresses to identify open ports.
## 📌 特性
- Scan a single IP address
- Scan multiple IP addresses
- Detect open TCP ports
- Easy to understand and modify
- Lightweight and beginner-friendly
## 🛠️ 要求
- Python 3.x
- termcolor
Install the required package:
```bash
pip install termcolor
```
## 📂 项目结构
```
.
├── portscanner.py
└── README.md
```
## 🚀 用法
Run the program:
```bash
python portscanner.py
```
Example:
```
[*] Enter Targets To Scan(split them by ,): 192.168.1.1
[*] Enter How Many Ports You Want To Scan: 100
Starting Scan For 192.168.1.1
[+] Port Opened 22
[+] Port Opened 80
```
Multiple targets:
```
[*] Enter Targets To Scan(split them by ,): 192.168.1.1,192.168.1.10
[*] Enter How Many Ports You Want To Scan: 1000
```
## ⚙️ 工作原理
- Accepts one or more IP addresses from the user.
- Scans ports from **1** up to the specified maximum.
- Attempts a TCP connection to each port.
- Displays any port that accepts a connection.
## 📚 使用的技术
- Python
- Socket Programming
- Termcolor
## ⚠️ 免责声明
This project is intended **for educational purposes and authorized network testing only**. Only scan systems that you own or have explicit permission to test. Unauthorized scanning may violate laws or organizational policies.
## 🤝 贡献
Contributions, improvements, and suggestions are welcome. Feel free to fork the repository and submit a pull request.
Made with ❤️ using Python.
```
**Vivek Chouhan**
**实习 ID-CITS5704**
标签:Python, Socket编程, TCP, 插件系统, 数据统计, 无后门, 端口扫描, 网络安全, 网络工具, 逆向工具, 隐私保护