russhaun / artillery

The Artillery Project is an open-source blue team tool designed to protect Linux and Windows operating systems through multiple methods.
0 stars 0 forks source link

remove exceptions from main server startup introduce port checks #63

Closed russhaun closed 2 years ago

russhaun commented 2 years ago

Exceptions in main honeypot startup are unneeded IMHO. my solution is add checks for ports in startup routine that determine open or closed status. if open use port if closed skip. This way you can put whatever in tcp and udp ports from config file and it will only use available ports.

russhaun commented 2 years ago

Have worked in new func check_open_port() into honeypot.py. it works like this it takes a port during server creation and returns true or false depending on if open or not. if open it starts a server on that port , if closed it skips and logs the port closed. at end of main() func it takes all closed ports and alerts if needed. resulting in 1 call to write_log() and 1 call to warn_the_good_guys() containing all info. available in next release 1.0.6-beta

russhaun commented 2 years ago

1.0.6-beta has these changes closing issue