Phype/telnet-iot-honeypot

Demonizing backend.py and honeypot.py

odolezal opened this issue · 1 comments

Hello.
Has anyone have experience with demonizing Python scripts "backend.py" and "honeypot.py"? Longterm runnning telnet-iot-honeypot in "screen" is not right way, and after some time scripts result in errors.

Thanks for replyes.

Phype commented

The crash after some time has (probably) to do with database problems i wasn't able to figure out. From my experience, honeypot.py is stable, but backend.py tends to not be able to write to the database after some time because of database connection/commit issues. You can experiment with different database drivers (mysql / sqlite) and settings (pool_size/max_overflow in backend/db.py or max_db_conn in config) but this didn't help for me. Obviously, fixing the bug would be best, but i have no free time to figure that out and it seems to be not easily reproduceable either :/

Maybe restarting the backend automatically each day/hour/whatever is enough, the honeypot should retry uploading the connection at least once if the backend is unavailable for some time.