New command: passwd

git-svn-id: https://kippo.googlecode.com/svn/trunk@6 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
desaster
2009-11-11 06:31:17 +00:00
parent e90538042f
commit afd3626b38
2 changed files with 11 additions and 0 deletions

View File

@@ -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