Skip to content

Kachinonye/portsleuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PortSleuth β€” Port Scanner & Suspicious Service Notifier

πŸ” PortSleuth is a lightweight Bash script designed to help Linux admins scan for open TCP ports and detect unexpected or suspicious services running on a system.

πŸš€ Features

  • Scans all currently open TCP ports
  • Compares against a customizable list of allowed/expected ports
  • Logs all findings with timestamps
  • Highlights any unknown or potentially rogue services
  • Cleans up logs older than 7 days
  • Can be scheduled to run daily via cron

πŸ“‚ Output

Logs are saved to the logs/ directory:

πŸ‘¨β€πŸ’» Use Case

Ideal for Linux administrators or DevOps engineers who want to enhance visibility over their systems’ open ports and service exposure.

πŸ› οΈ Customize Allowed Ports

Edit the script to include only the ports/services you expect to be running:

ALLOWED_PORTS=(22 80 443)

About

Lightweight Bash port scanner and suspicious service notifier for Linux servers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages