Skip to content

nireitdev/go-scanport-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scanport Detector

A simple tool to detect port scans on servers.

It's able to detect simple port scans and distribute the information to other servers if a Redis server is available.

For educational purposes only and to learn packet capture using GoLang.

WIP! A lot of refactoring is needed.

Instalation

To compile and run in Linux you must install the PCap development library first:

apt install libpcap-dev

Then rename "config.yml.example" to "config.yml" and modify.

Finally run:

go run main.go

Config

Information loaded from config.yml:

  • device: local network device
  • ip: specific local ip to watch
  • portrange: only scan this range of local ports
  • portignore: don't care this common ports

To Do:

  • Detect more advanced features of Nmap's port scanning.
  • Run commands on detect port scanning: iptables, firewall,etc
  • Ingest data into a SIEM (Security Information and Event Management) systems.
  • Better documentation :p

About

A simple tool to detect port scans on servers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages