Closed bontchev closed 5 years ago
I have verified that, with the above change, the honeypot now works on Windows, so I have submitted a pull request (#18). It should also work on OS X now, but I can't test that.
Pull request was merged, so I'm closing the issue. Still, would be nice if somebody could try the honeypot on OS X and report the result.
Currently the honeypot runs only on Linux. This is because the socket attributes
TCP_KEEPIDLE
,TCP_KEEPINTVL
, andTCP_KEEPCNT
are defined only there. They are not defined on Windows and, AFAIK, aren't defined in OS X, either. I am not familiar with socket programming, but how important are they?If they are necessary, we should document that the honeypot runs only on Linux and maybe add some code that checks the OS and exits with an appropriate error message if it is not Linux. Otherwise we should modify the code so that they are used only if they are available; something like this: