mirror of https://github.com/cowrie/cowrie.git
Accept "any" (*) password if desired
Credit: https://github.com/micheloosterhof/kippo
This commit is contained in:
parent
9203c8ff17
commit
4b4ae526d5
|
@ -59,7 +59,7 @@ class UserDB:
|
|||
'''note that it allows multiple passwords for a single username'''
|
||||
|
||||
for (login, uid, passwd) in self.userdb:
|
||||
if login == thelogin and passwd == thepasswd:
|
||||
if login == thelogin and (passwd == thepasswd or passwd == '*'):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in New Issue