mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-24 01:14:27 +01:00
Fix lastlog sorting (Janne Snabb)
git-svn-id: https://kippo.googlecode.com/svn/trunk@147 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -14,7 +14,7 @@ class command_last(HoneyPotCommand):
|
||||
db = anydbm.open('%s/lastlog.db' % \
|
||||
config().get('honeypot', 'data_path'), 'c')
|
||||
count = 0
|
||||
for k in sorted(db.keys(), reverse=True):
|
||||
for k in sorted(db.keys(), key=int, reverse=True):
|
||||
self.writeln(db[k])
|
||||
count += 1
|
||||
if count >= 25:
|
||||
|
||||
Reference in New Issue
Block a user