mirror of
https://github.com/aljazceru/cowrie.git
synced 2025-12-18 14:34:22 +01:00
New command: passwd
git-svn-id: https://kippo.googlecode.com/svn/trunk@6 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -116,6 +116,16 @@ class command_pwd(HoneyPotCommand):
|
||||
def call(self, args):
|
||||
self.honeypot.writeln(self.honeypot.cwd)
|
||||
|
||||
class command_passwd(HoneyPotCommand):
|
||||
def call(self, args):
|
||||
# Until we learn how to be interactive
|
||||
for i in [
|
||||
'Changing password for root.',
|
||||
'passwd: Authentication information cannot be recovered',
|
||||
'passwd: password unchanged',
|
||||
]:
|
||||
self.honeypot.writeln(i)
|
||||
|
||||
class command_nop(HoneyPotCommand):
|
||||
def call(self, args):
|
||||
pass
|
||||
|
||||
@@ -16,6 +16,7 @@ cmdl = {
|
||||
'/bin/mount': base.command_mount,
|
||||
'/bin/pwd': base.command_pwd,
|
||||
'/bin/uname': base.command_uname,
|
||||
'/usr/bin/passwd': base.command_passwd,
|
||||
'set': base.command_nop,
|
||||
'unset': base.command_nop,
|
||||
'history': base.command_nop,
|
||||
|
||||
Reference in New Issue
Block a user