mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 14:34:22 +01:00
don't let user set password to '*'
This commit is contained in:
@@ -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 or passwd == '*'):
|
||||
if login == thelogin and passwd in (thepasswd, '*'):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user