## https://sploitus.com/exploit?id=CEF8EC43-BFE2-5B5E-8918-54A90DA092B4
# TCP Port Scanner
A simple Python tool that scans TCP ports on a target host and flags open ports with known CVE warnings.
---
## What It Does
- Scans a range of TCP ports on a given IP or hostname
- Reports which ports are open
- Warns about commonly risky ports (22, 80, 443, 445)
- Reads a local vulnerability database (JSON) for CVE references
## What It Does NOT Do
- UDP scanning
- OS fingerprinting
- Banner grabbing
- Real evasion (decoy packets do not hide TCP scans)
---
## Requirements
```bash
pip install None # Standard library only
```
Python 3.6+, no external dependencies.
---
## Usage
```bash
python import_socket.py
```
You will be prompted for:
- Target IP or hostname
- Start port
- End port
---
## Example Output
```
--- STEALTH TCP SCANNER ---
Enter the target IP: 127.0.0.1
Start Port: 1
End Port: 1000
[+] Found open port: 80
[+] Found open port: 443
[+] Scan Complete. Found 2 open ports.
```
---
## Vulnerability Database
The `vulnerability_db.json` file contains a small local list of known CVEs matched against common service banners. It covers:
- OpenSSH 7.2p1 โ CVE-2018-15473
- Apache 2.4.41 โ CVE-2021-41773
- SMB (port 445) โ MS17-010
- nginx 1.14.0 โ CVE-2019-20372
---
## Legal Warning
**Only use this tool on systems you own or have explicit written permission to scan.**
Unauthorized port scanning may be illegal in your country.
---
## Author
Learning project โ built to understand TCP sockets and network fundamentals.