Some telnet clients attempt to initiate negotiation about SGA and LINEMODE themselves, but only when a port isn't specified on the command line. If we allow them to enable SGA or LINEMODE, they change from sending a newline character when enter is pressed to sending a carriage return. Cowrie can't handle this properly at the login prompt, which prevents the client from being able to login.
I left the old code commented out so it is easier re-enable once Cowrie/Twisted support the Telnet protocol better.
Fixes#414
* Update logstash's configuration to reflect changes in maxmind's geoip databases
* Update documentation on "ELK Stack"
* Add sample of filebeat configuration
* Update documentation for "ELK Stack" with FileBeat option
* Add some tips on configuration of kibana
* Remove outdated kibana-cowrie.conf
* Add link to XPack
* Updated service template to use the virtual-env and proper PID file location
* Fixed PIDFile path in cowrie.service template
* Revert "Fixed PIDFile path in cowrie.service template"
This reverts commit 022afb7134.
* Revert "Revert "Fixed PIDFile path in cowrie.service template""
This reverts commit 5b01372176.
Revert changes
* Fixed PIDFile path in cowrie.service template
* Updated to correct PIDFile path for cowrie.service
* Updated service template to use the virtual-env and proper PID file location
* Fixed PIDFile path in cowrie.service template
* Revert "Fixed PIDFile path in cowrie.service template"
This reverts commit 022afb7134.
* Revert "Revert "Fixed PIDFile path in cowrie.service template""
This reverts commit 5b01372176.
Revert changes
* Fixed PIDFile path in cowrie.service template
* Improve handling of ImportErrors to notify users that they need to install new dependencies
Also added missing dependency to requirements.txt
* Mention installing dependencies in virtualenv if used
* Move requirements used only by output modules to a separate file
* Using a virtualenv is now the only officially supported method
* Handle ImportErrors when loading output plugins so different install instructions can be given
* Cleanup requirements-output.txt
* * Updating start script to run in the foreground when using supervisord.
* Update install documentation to reference use of supervisord and install on OSX
* Updating index of INSTALL.md to with reference to supervisord
* Adding slack output and db
* Restoring start.sh back to default of AUTHBIND_ENABLED=no and DAEMONIZE=no
* Updating with pretty formatting of json dump
* Telnet option negotiation now chained and handled better to prevent logging expected errors
Also added support for parsing NAWS negotiation and setting windowSize accordingly
This still needs more work to realistically behave like other Telnet servers, but it is limited significantly by Twisted's limited option support and Telnet clients' inconsistent behavior
* While not standard, negotiating these options here does result in better client behavior
* Cleanup old comments and unused code