Move auth_none and auth_keyboard_interactive_enabled to [ssh] config section (#1153)

This commit is contained in:
Michel Oosterhof
2019-06-20 11:33:38 +04:00
committed by GitHub
parent 571d4f0308
commit 8b7415cb1b
3 changed files with 17 additions and 12 deletions

View File

@ -1,3 +1,6 @@
* 2019-06-20 Move `auth_none` and `auth_keyboard_interactive_enabled` to [ssh] config section
Release 1.6.0 Release 1.6.0
============= =============

View File

@ -183,17 +183,6 @@ auth_class = UserDB
#auth_class_parameters = 2, 5, 10 #auth_class_parameters = 2, 5, 10
# No authentication checking at all
# enabling 'auth_none' will enable the ssh2 'auth_none' authentication method
# this allows the requested user in without any verification at all
#
# (default: false)
#auth_none_enabled = false
# Configure keyboard-interactive login
auth_keyboard_interactive_enabled = false
# ============================================================================ # ============================================================================
# Historical SSH Specific Options # Historical SSH Specific Options
# historical options in [honeypot] that have not yet been moved to [ssh] # historical options in [honeypot] that have not yet been moved to [ssh]
@ -465,6 +454,19 @@ forward_tunnel = false
# forward_tunnel_443 = 127.0.0.1:3128 # forward_tunnel_443 = 127.0.0.1:3128
# No authentication checking at all
# enabling 'auth_none' will enable the ssh2 'auth_none' authentication method
# this allows the requested user in without any verification at all
#
# (default: false)
#auth_none_enabled = false
# Configure keyboard-interactive login
auth_keyboard_interactive_enabled = false
# ============================================================================ # ============================================================================
# Telnet Specific Options # Telnet Specific Options
# ============================================================================ # ============================================================================

View File

@ -153,7 +153,7 @@ Makes a Cowrie SSH/Telnet honeypot.
factory.portal.registerChecker( factory.portal.registerChecker(
core.checkers.HoneypotPasswordChecker()) core.checkers.HoneypotPasswordChecker())
if CowrieConfig().getboolean('honeypot', 'auth_none_enabled', fallback=False) is True: if CowrieConfig().getboolean('ssh', 'auth_none_enabled', fallback=False) is True:
factory.portal.registerChecker( factory.portal.registerChecker(
core.checkers.HoneypotNoneChecker()) core.checkers.HoneypotNoneChecker())