Skip to content

D0up4/TCP-Port-Scan-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” TCP Port Scan Detector

Author: D0up4
Project Type: Real-world Blue team tool.
Last Updated: 06/2025


πŸ“˜ Description

This project is a lightweight TCP port scan detector built with Python and Scapy. It captures live TCP traffic on a network interface and analyzes SYN packets to identify potential port scanning or brute-force activity based on the frequency of connection attempts to different ports.


βš™οΈ Features

  • βœ… Captures live TCP packets using Scapy
  • βœ… Detects suspicious SYN packet bursts indicating possible port scans or brute-force attacks
  • βœ… Configurable thresholds for detection sensitivity (number of attempts and time window)
  • βœ… Simple console output alerts when suspicious activity is detected
  • βœ… Pure Python implementation with minimal dependencies

πŸš€ Usage

Run the script with administrative privileges to allow packet capturing:

sudo python port_scan_detector.py

About

Detect if your are being port scanned.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages