def execCommand(self, proto, cmd): """ """ self.protocol = protocol.LoggingServerProtocol( protocol.HoneyPotExecProtocol, self, cmd) self.protocol.makeConnection(proto) proto.makeConnection(session.wrapProtocol(self.protocol))
def openShell(self, proto): """ """ self.protocol = protocol.LoggingServerProtocol( protocol.HoneyPotInteractiveProtocol, self) self.protocol.makeConnection(proto) proto.makeConnection(session.wrapProtocol(self.protocol))