Пример #1
0
    def finish(self, line):
        self.honeypot.password_input = False

        if line != self.passwd or self.passwd == '*':
            self.writeln('Sorry, passwords do not match')
            self.exit()
            return

        userdb = UserDB()
        userdb.adduser(self.honeypot.user.username, self.honeypot.user.uid,
                       self.passwd)

        self.writeln('passwd: password updated successfully')
        self.exit()
Пример #2
0
    def finish(self, line):
        self.protocol.password_input = False

        if line != self.passwd or self.passwd == '*':
            self.writeln('Sorry, passwords do not match')
            self.exit()
            return

        userdb = UserDB()
        userdb.adduser(self.protocol.user.username,
            self.protocol.user.uid, self.passwd)

        self.writeln('passwd: password updated successfully')
        self.exit()
Пример #3
0
    def finish(self, line):
        """
        """
        self.protocol.password_input = False

        if line != self.passwd or self.passwd == '*':
            self.write('Sorry, passwords do not match\n')
            self.exit()
            return

        userdb = UserDB(self.protocol.cfg)
        userdb.adduser(self.protocol.user.username, self.passwd)

        self.write('passwd: password updated successfully\n')
        self.exit()
Пример #4
0
    def finish(self, line):
        """
        """
        self.protocol.password_input = False

        if line != self.passwd or self.passwd == "*":
            self.write("Sorry, passwords do not match\n")
            self.exit()
            return

        userdb = UserDB(self.protocol.cfg)
        userdb.adduser(self.protocol.user.username, self.passwd)

        self.write("passwd: password updated successfully\n")
        self.exit()