mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-17 14:04:28 +01:00
Added patches submitted by Janne Snabb:
* New config option "ssh_addr", which can be used to be bind kippo to a specific IP * New config option "out_addr", which tells kippo to bind to a specific IP for outgoing connections (wget) * wget now sends a fake user-agent * anydbm .iterkeys() isn't necessarily available (passwd, last) git-svn-id: https://kippo.googlecode.com/svn/trunk@143 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -246,7 +246,7 @@ class command_passwd(HoneyPotCommand):
|
||||
data_path = self.honeypot.env.cfg.get('honeypot', 'data_path')
|
||||
passdb = anydbm.open('%s/pass.db' % (data_path,), 'c')
|
||||
if len(self.password) and self.password not in passdb:
|
||||
passdb[self.password] = None
|
||||
passdb[self.password] = ''
|
||||
passdb.close()
|
||||
|
||||
self.writeln('passwd: password updated successfully')
|
||||
|
||||
Reference in New Issue
Block a user