auth_none feature

This commit is contained in:
Michel Oosterhof
2015-08-19 14:19:01 +00:00
parent a77aa94d33
commit 853fce6103
4 changed files with 57 additions and 6 deletions

View File

@@ -54,6 +54,11 @@ class CowrieServiceMaker(object):
factory.portal.registerChecker(core.auth.HoneypotPublicKeyChecker(cfg))
factory.portal.registerChecker(core.auth.HoneypotPasswordChecker(cfg))
if cfg.has_option('honeypot', 'auth_none_enabled') and \
cfg.get('honeypot', 'auth_none_enabled').lower() in \
('yes', 'true', 'on'):
factory.portal.registerChecker(core.auth.HoneypotNoneChecker())
top_service = top_service = service.MultiService()
for i in listen_addr.split():