def ssh_USERAUTH_INFO_RESPONSE(self, packet):
        """
        The user has responded with answers to PAMs authentication questions.
        Parse the packet into a PAM response and callback self._pamDeferred.
        Payload::
            uint32 numer of responses
            string response 1
            ...
            string response n
        """
        d, self._pamDeferred = self._pamDeferred, None

        try:
            resp = []
            numResps = struct.unpack('>L', packet[:4])[0]
            packet = packet[4:]
            while len(resp) < numResps:
                response, packet = getNS(packet)
                resp.append((response, 0))
            if packet:
                raise error.ConchError(
                    "{:d} bytes of extra data".format(len(packet)))
        except:
            d.errback(failure.Failure())
        else:
            d.callback(resp)
dataset/ETHPy150Open cowrie/cowrie/cowrie/ssh/userauth.py/HoneyPotSSHUserAuthServer.ssh_USERAUTH_INFO_RESPONSE/original